From 4f882c821e6622a0aacc930dbc4b37a412dfdedf Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sat, 16 Feb 2019 16:19:57 +0200 Subject: [PATCH] - changed the initial layout to 'compact' - updated the install scripts to uninstall a previously installed FlatCAM Beta (that has the same GUID) --- FlatCAMApp.py | 10 ++++++++-- README.md | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/FlatCAMApp.py b/FlatCAMApp.py index 9dea8c06..3b91a598 100644 --- a/FlatCAMApp.py +++ b/FlatCAMApp.py @@ -1467,7 +1467,10 @@ class App(QtCore.QObject): # if the file contain an empty dictionary then save the factory defaults into the file if not factory_defaults: self.save_factory_defaults(silent=False) + # ONLY AT FIRST STARTUP INIT THE GUI LAYOUT TO 'COMPACT' + self.on_layout(layout='compact') factory_file.close() + # and then make the factory_defaults.FlatConfig file read_only os it can't be modified after creation. filename_factory = self.data_path + '/factory_defaults.FlatConfig' os.chmod(filename_factory, S_IREAD | S_IRGRP | S_IROTH) @@ -3360,10 +3363,13 @@ class App(QtCore.QObject): self.general_defaults_form.general_gui_group.workspace_cb.setChecked(True) self.on_workspace() - def on_layout(self): + def on_layout(self, layout=None): self.report_usage("on_layout()") - current_layout= self.general_defaults_form.general_gui_group.layout_combo.get_value().lower() + if layout is None: + current_layout= self.general_defaults_form.general_gui_group.layout_combo.get_value().lower() + else: + current_layout = layout settings = QSettings("Open Source", "FlatCAM") settings.setValue('layout', current_layout) diff --git a/README.md b/README.md index 42831abe..51f70fbd 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ CAD program, and create G-Code for Isolation routing. - fixed Excellon parser to detect correctly the units and zeros for Excellon's generated by Eagle 9.3.0 - modified the initial size of the canvas on startup - modified the build file (make_win.py) to solve the issue with suddenly not accepting the version as Beta +- changed the initial layout to 'compact' +- updated the install scripts to uninstall a previously installed FlatCAM Beta (that has the same GUID) 15.02.2019