David Robertson 5 лет назад
Родитель
Сommit
100f3e5394

+ 0 - 2
flatcamGUI/preferences/general/GeneralAppPrefGroupUI.py

@@ -1,7 +1,5 @@
 import sys
-
 from PyQt5.QtCore import QSettings
-
 from flatcamGUI.GUIElements import OptionalInputSection
 from flatcamGUI.preferences.OptionUI import *
 from flatcamGUI.preferences.OptionsGroupUI import OptionsGroupUI2

+ 1 - 1
flatcamGUI/preferences/general/GeneralAppSettingsGroupUI.py

@@ -1,4 +1,4 @@
-from PyQt5 import QtCore, QtGui
+from PyQt5 import QtCore
 from PyQt5.QtCore import QSettings
 from flatcamGUI.GUIElements import OptionalInputSection
 from flatcamGUI.preferences import settings

+ 1 - 3
flatcamGUI/preferences/general/GeneralGUIPrefGroupUI.py

@@ -1,5 +1,5 @@
 from PyQt5 import QtWidgets, QtCore
-from PyQt5.QtCore import QSettings, Qt
+from PyQt5.QtCore import QSettings
 from flatcamGUI.preferences.OptionsGroupUI import OptionsGroupUI2
 
 import gettext
@@ -235,8 +235,6 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI2):
             current_layout = self.layout_field.get_value()
         self.app.ui.set_layout(current_layout)
 
-
-
     @staticmethod
     def handle_style(style):
         # FIXME: this should be moved out to a view model

+ 1 - 2
flatcamGUI/preferences/general/GeneralPreferencesUI.py

@@ -9,13 +9,12 @@ class GeneralPreferencesUI(PreferencesSectionUI):
 
     def __init__(self, decimals, **kwargs):
         self.decimals = decimals
-        self.general_gui_group = GeneralGUIPrefGroupUI(decimals=self.decimals)
         super().__init__(**kwargs)
 
     def build_groups(self) -> [OptionsGroupUI]:
         return [
             GeneralAppPrefGroupUI(decimals=self.decimals),
-            self.general_gui_group,
+            GeneralGUIPrefGroupUI(decimals=self.decimals),
             GeneralAppSettingsGroupUI(decimals=self.decimals)
         ]