- fixed wrong display of editor actions in the Editor toolbar at the first start of the app

This commit is contained in:
Marius Stanciu
2020-11-28 00:10:46 +02:00
committed by Marius
parent 641fee11d1
commit 7a618a85c5
2 changed files with 3 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ CHANGELOG for FlatCAM beta
- some refactoring between app_Main class and MainGUI class - some refactoring between app_Main class and MainGUI class
- on tab close in Notebook the tool_shapes are deleted (shape markings used by some of the App Tools) therefore part fo the clean-up - on tab close in Notebook the tool_shapes are deleted (shape markings used by some of the App Tools) therefore part fo the clean-up
- added some protections in case the Editors could not start such that the app is not crashed - added some protections in case the Editors could not start such that the app is not crashed
- fixed wrong display of editor actions in the Editor toolbar at the first start of the app
26.11.2020 26.11.2020

View File

@@ -2191,7 +2191,7 @@ class MainGUI(QtWidgets.QMainWindow):
# ######################### Edit Toolbar ################################# # ######################### Edit Toolbar #################################
# ######################################################################## # ########################################################################
self.editor_start_btn = self.toolbaredit.addAction( self.editor_start_btn = self.toolbaredit.addAction(
QtGui.QIcon(self.app.resource_location + '/edit32.png'), _("Editor")) QtGui.QIcon(self.app.resource_location + '/edit_file32.png'), _("Editor"))
self.editor_exit_btn = QtWidgets.QToolButton() self.editor_exit_btn = QtWidgets.QToolButton()
# https://www.w3.org/TR/SVG11/types.html#ColorKeywords # https://www.w3.org/TR/SVG11/types.html#ColorKeywords
@@ -2452,6 +2452,7 @@ class MainGUI(QtWidgets.QMainWindow):
self.corner_snap_btn.setVisible(False) self.corner_snap_btn.setVisible(False)
self.snap_magnet.setVisible(False) self.snap_magnet.setVisible(False)
self.editor_exit_btn_ret_action.setVisible(False)
qsettings = QSettings("Open Source", "FlatCAM") qsettings = QSettings("Open Source", "FlatCAM")
if qsettings.contains("layout"): if qsettings.contains("layout"):