Save edition type to settings after wizard finish #4715

This commit is contained in:
Jerry (Xinyu Hou) 2015-11-18 15:03:06 -08:00
parent 4698394e21
commit 20d4d47648
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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();