Improve settings migration and management (#5107)
* Settings can now be optionally removed during uninstall (didn't find how to translate) * Settings import from previous versions now optional * Hopefully cleaner implementation * This crashes (already on 2.2) * Translation * Remove broken settings import from companion9x * Fixes for MainWindow
This commit is contained in:
committed by
Bertrand Songis
parent
96f1a16744
commit
b3e9d8d97d
@@ -419,10 +419,12 @@ class AppData: protected CompStoreObj
|
||||
QMap<int, QString> getActiveProfiles();
|
||||
inline bool isFirstUse() const { return firstUse; }
|
||||
inline QString previousVersion() const { return upgradeFromVersion; }
|
||||
bool hasCurrentSettings();
|
||||
bool findPreviousVersionSettings(QString * version);
|
||||
bool importSettings(QString fromVersion);
|
||||
|
||||
protected:
|
||||
void convertSettings(QSettings & settings);
|
||||
bool importSettings(QSettings & toSettings);
|
||||
|
||||
bool firstUse;
|
||||
QString upgradeFromVersion;
|
||||
|
||||
Reference in New Issue
Block a user