clean up
This commit is contained in:
@@ -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,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,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
|
||||
|
||||
@@ -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)
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user