- 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

@@ -2191,7 +2191,7 @@ class MainGUI(QtWidgets.QMainWindow):
# ######################### Edit Toolbar #################################
# ########################################################################
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()
# https://www.w3.org/TR/SVG11/types.html#ColorKeywords
@@ -2452,6 +2452,7 @@ class MainGUI(QtWidgets.QMainWindow):
self.corner_snap_btn.setVisible(False)
self.snap_magnet.setVisible(False)
self.editor_exit_btn_ret_action.setVisible(False)
qsettings = QSettings("Open Source", "FlatCAM")
if qsettings.contains("layout"):