after joining a session default to select mode
This commit is contained in:
parent
4ca9ab910e
commit
2a29cd1fe5
3 changed files with 2 additions and 3 deletions
|
@ -295,11 +295,13 @@ class CoreClient:
|
|||
response = self.client.get_session_metadata(self.session_id)
|
||||
self.parse_metadata(response.config)
|
||||
|
||||
# update ui to represent current state
|
||||
if self.is_runtime():
|
||||
self.app.toolbar.runtime_frame.tkraise()
|
||||
else:
|
||||
self.app.toolbar.design_frame.tkraise()
|
||||
self.app.statusbar.progress_bar.stop()
|
||||
self.app.toolbar.click_selection()
|
||||
|
||||
def is_runtime(self):
|
||||
return self.state == core_pb2.SessionState.RUNTIME
|
||||
|
|
|
@ -109,7 +109,6 @@ class MenuAction:
|
|||
self.app.statusbar.progress_bar.start(5)
|
||||
thread = threading.Thread(target=self.app.core.open_xml, args=([file_path]))
|
||||
thread.start()
|
||||
# self.app.core.open_xml(file_path)
|
||||
|
||||
def gui_preferences(self):
|
||||
dialog = PreferencesDialog(self.app, self.app)
|
||||
|
|
|
@ -40,8 +40,6 @@ class Toolbar(ttk.Frame):
|
|||
self.network_button = None
|
||||
self.annotation_button = None
|
||||
|
||||
# runtime buttons
|
||||
|
||||
# frames
|
||||
self.design_frame = None
|
||||
self.runtime_frame = None
|
||||
|
|
Loading…
Reference in a new issue