def reload_cache(self): tc.get_all_projects_and_logins(True) for project in env_inst.projects.values(): project.query_search_types(True) if env_mode.get_mode() == 'maya': self.restart_ui_main() else: self.close() gf.restart_app()
def restart_for_update_ui_main(self): if env_mode.get_mode() == 'maya': # import main_maya # thread = main_maya.main.restart() from thlib.ui_classes.ui_maya_dock import close_all_instances close_all_instances() # self.restart_ui_main() else: self.close() gf.restart_app()