def poll(cls, context): # Check VRtist process to auto disconnect if cls.vrtist_process is not None and cls.vrtist_process.poll() is not None: cls.vrtist_process = None leave_current_room() disconnect() # Manage button state return os.path.isfile(get_mixer_prefs().VRtist)
def execute(self, context): from mixer.bl_panels import update_ui_lists leave_current_room() update_ui_lists() return {"FINISHED"}