Ver Fonte

- changed the initial layout to 'compact'
- updated the install scripts to uninstall a previously installed FlatCAM Beta (that has the same GUID)

Marius Stanciu há 7 anos atrás
pai
commit
4f882c821e
2 ficheiros alterados com 10 adições e 2 exclusões
  1. 8 2
      FlatCAMApp.py
  2. 2 0
      README.md

+ 8 - 2
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)

+ 2 - 0
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