Save edition type to settings after wizard finish #4715
This commit is contained in:
parent
4698394e21
commit
20d4d47648
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue