Refactor the app prefs group

This commit is contained in:
David Robertson
2020-05-03 15:38:26 +01:00
parent df9ebaf2c9
commit a2d48d1c66
7 changed files with 266 additions and 416 deletions

View File

@@ -79,7 +79,7 @@ def on_language_apply_click(app, restart=False):
:return:
"""
name = app.ui.general_defaults_form.general_app_group.language_cb.currentText()
name = app.preferencesUiManager.get_form_field("global_language").currentText()
theme_settings = QSettings("Open Source", "FlatCAM")
if theme_settings.contains("theme"):