From 5e55f0d499a5f7ea00cd0078684a7dc413ea83f9 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 3 Feb 2019 16:49:33 +0200 Subject: [PATCH] - fixed remove_tools() so the Tcl Shell action is readded to the Tools menu and reconnected to it's slot function --- FlatCAMApp.py | 7 +++++-- README.md | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 669d4586..73d677e4 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -1464,7 +1464,7 @@ class App(QtCore.QObject): self.ui.menutool.removeAction(act) def init_tools(self): - + log.debug("init_tools()") # delete the data currently in the Tools Tab and the Tab itself widget = QtWidgets.QTabWidget.widget(self.ui.notebook, 2) if widget is not None: @@ -1482,7 +1482,10 @@ class App(QtCore.QObject): # reinstall all the Tools as some may have been removed when the data was removed from the Tools Tab # first remove all of them self.remove_tools() - # second install all of them + # second re add the TCL Shell action to the Tools menu and reconnect it to ist slot function + self.ui.menutoolshell = self.ui.menutool.addAction(QtGui.QIcon('share/shell16.png'), '&Command Line\tS') + self.ui.menutoolshell.triggered.connect(self.on_toggle_shell) + # third install all of them self.install_tools() self.log.debug("Tools are initialized.") diff --git a/README.md b/README.md index 5fecb827..bfd3bd68 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ CAD program, and create G-Code for Isolation routing. - added some status bar messages in the Geometry Editor to guide the user when using the Geometry Tools - now the '`' shortcut key that shows the 'shortcut key list' in Editors points to the same window which is created in a tab no longer as a pop-up window. This tab can be detached if needed. - added a remove_tools() function before install_tools() in the init_tools() that is called when creating a new project. Should solve the issue with having double menu entry's in the TOOLS menu +- fixed remove_tools() so the Tcl Shell action is readded to the Tools menu and reconnected to it's slot function 2.2.2019 @@ -27,7 +28,7 @@ CAD program, and create G-Code for Isolation routing. - added a new postprocessor file named: 'probe_from_zmove' which allow probing to be done from z_move position on toolchange event - fixed the snap magnet button in Geometry Editor, restored the checkable property to True - some more changes in the Editors GUI in deactivate() function -- a fix for saving again empt an edited new and empty Excellon Object +- a fix for saving as empty an edited new and empty Excellon Object 1.02.2019