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)
|
response = self.client.get_session_metadata(self.session_id)
|
||||||
self.parse_metadata(response.config)
|
self.parse_metadata(response.config)
|
||||||
|
|
||||||
|
# update ui to represent current state
|
||||||
if self.is_runtime():
|
if self.is_runtime():
|
||||||
self.app.toolbar.runtime_frame.tkraise()
|
self.app.toolbar.runtime_frame.tkraise()
|
||||||
else:
|
else:
|
||||||
self.app.toolbar.design_frame.tkraise()
|
self.app.toolbar.design_frame.tkraise()
|
||||||
self.app.statusbar.progress_bar.stop()
|
self.app.statusbar.progress_bar.stop()
|
||||||
|
self.app.toolbar.click_selection()
|
||||||
|
|
||||||
def is_runtime(self):
|
def is_runtime(self):
|
||||||
return self.state == core_pb2.SessionState.RUNTIME
|
return self.state == core_pb2.SessionState.RUNTIME
|
||||||
|
|
|
@ -109,7 +109,6 @@ class MenuAction:
|
||||||
self.app.statusbar.progress_bar.start(5)
|
self.app.statusbar.progress_bar.start(5)
|
||||||
thread = threading.Thread(target=self.app.core.open_xml, args=([file_path]))
|
thread = threading.Thread(target=self.app.core.open_xml, args=([file_path]))
|
||||||
thread.start()
|
thread.start()
|
||||||
# self.app.core.open_xml(file_path)
|
|
||||||
|
|
||||||
def gui_preferences(self):
|
def gui_preferences(self):
|
||||||
dialog = PreferencesDialog(self.app, self.app)
|
dialog = PreferencesDialog(self.app, self.app)
|
||||||
|
|
|
@ -40,8 +40,6 @@ class Toolbar(ttk.Frame):
|
||||||
self.network_button = None
|
self.network_button = None
|
||||||
self.annotation_button = None
|
self.annotation_button = None
|
||||||
|
|
||||||
# runtime buttons
|
|
||||||
|
|
||||||
# frames
|
# frames
|
||||||
self.design_frame = None
|
self.design_frame = None
|
||||||
self.runtime_frame = None
|
self.runtime_frame = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue