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; } void setAutoHide(bool b) { m_AutoHide = b; }
bool getAutoHide() { return m_AutoHide; } bool getAutoHide() { return m_AutoHide; }
void saveSettings();
protected: protected:
QSettings& settings() { return *m_pSettings; } QSettings& settings() { return *m_pSettings; }
void setScreenName(const QString& s) { m_ScreenName = s; } void setScreenName(const QString& s) { m_ScreenName = s; }
@ -111,7 +113,6 @@ class AppConfig
void setElevateMode(bool b) { m_ElevateMode = b; } void setElevateMode(bool b) { m_ElevateMode = b; }
void loadSettings(); void loadSettings();
void saveSettings();
private: private:
QSettings* m_pSettings; QSettings* m_pSettings;

View File

@ -223,9 +223,11 @@ void SetupWizard::accept()
coreInterface.notifyActivation("skip:unknown"); coreInterface.notifyActivation("skip:unknown");
} }
appConfig.setEdition(m_Edition);
m_MainWindow.setEdition(m_Edition); m_MainWindow.setEdition(m_Edition);
m_MainWindow.updateLocalFingerprint(); m_MainWindow.updateLocalFingerprint();
appConfig.saveSettings();
settings.sync(); settings.sync();
QWizard::accept(); QWizard::accept();