- some changes on how the first layout is applied

- minor bug fixes (typos from copy/paste from another part of the program)
This commit is contained in:
Marius Stanciu
2019-03-18 03:54:31 +02:00
parent 3daed4cbfb
commit b79c26ec4b
4 changed files with 26 additions and 23 deletions

View File

@@ -529,9 +529,9 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
settings = QSettings("Open Source", "FlatCAM")
if settings.contains("layout"):
layout = settings.value('layout', type=str)
if layout == 'standard':
if layout == 'Standard':
pass
elif layout == 'compact':
elif layout == 'Compact':
self.removeToolBar(self.snap_toolbar)
self.snap_toolbar.setMaximumHeight(30)
self.splitter_left.addWidget(self.snap_toolbar)
@@ -1558,7 +1558,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.corner_snap_btn.setVisible(False)
self.snap_magnet.setVisible(False)
elif layout == 'compact':
elif layout == 'Compact':
self.exc_edit_toolbar.setDisabled(True)
self.geo_edit_toolbar.setDisabled(True)
self.snap_magnet.setVisible(True)
@@ -1732,7 +1732,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.corner_snap_btn.setVisible(False)
self.snap_magnet.setVisible(False)
elif layout == 'compact':
elif layout == 'Compact':
self.exc_edit_toolbar.setVisible(True)
self.exc_edit_toolbar.setDisabled(True)
self.geo_edit_toolbar.setVisible(True)