diff --git a/src/gui/src/AppConfig.h b/src/gui/src/AppConfig.h index 6a7c1905..398082f2 100644 --- a/src/gui/src/AppConfig.h +++ b/src/gui/src/AppConfig.h @@ -97,6 +97,8 @@ class AppConfig void setAutoHide(bool b) { m_AutoHide = b; } bool getAutoHide() { return m_AutoHide; } + void saveSettings(); + protected: QSettings& settings() { return *m_pSettings; } void setScreenName(const QString& s) { m_ScreenName = s; } @@ -111,7 +113,6 @@ class AppConfig void setElevateMode(bool b) { m_ElevateMode = b; } void loadSettings(); - void saveSettings(); private: QSettings* m_pSettings; diff --git a/src/gui/src/SetupWizard.cpp b/src/gui/src/SetupWizard.cpp index 13078220..e2f4abcc 100644 --- a/src/gui/src/SetupWizard.cpp +++ b/src/gui/src/SetupWizard.cpp @@ -223,9 +223,11 @@ void SetupWizard::accept() coreInterface.notifyActivation("skip:unknown"); } + appConfig.setEdition(m_Edition); m_MainWindow.setEdition(m_Edition); m_MainWindow.updateLocalFingerprint(); + appConfig.saveSettings(); settings.sync(); QWizard::accept();