- the Show Shell in Edit -> Preferences will now toggle the Tcl shell based on the current status of the Tcl Shell

- updated the Tcl command Isolate help for follow parameter
This commit is contained in:
Marius Stanciu
2020-04-13 20:44:51 +03:00
committed by Marius
parent 7e98365885
commit 4c196f6bae
4 changed files with 19 additions and 2 deletions

View File

@@ -5453,6 +5453,21 @@ class App(QtCore.QObject):
else:
self.ui.shell_dock.show()
def on_toggle_shell_from_settings(self, state):
"""
Toggle shell: if is visible close it, if it is closed then open it
:return: None
"""
self.report_usage("on_toggle_shell_from_settings()")
if state is True:
if not self.ui.shell_dock.isVisible():
self.ui.shell_dock.show()
else:
if self.ui.shell_dock.isVisible():
self.ui.shell_dock.hide()
def on_register_files(self, obj_type=None):
"""
Called whenever there is a need to register file extensions with FlatCAM.