GH-992 Add a transaction/locking mechanism to settings objects
This can cut the FTB loading by ~66% - worth it, but not ideal. Real solution will have to be implemented later.
This commit is contained in:
parent
0e0ddf5494
commit
ce99fabe13
14 changed files with 102 additions and 41 deletions
|
@ -47,15 +47,18 @@ public:
|
|||
|
||||
bool reload() override;
|
||||
|
||||
protected
|
||||
slots:
|
||||
void suspendSave();
|
||||
void resumeSave();
|
||||
|
||||
protected slots:
|
||||
virtual void changeSetting(const Setting &setting, QVariant value);
|
||||
virtual void resetSetting(const Setting &setting);
|
||||
|
||||
protected:
|
||||
virtual QVariant retrieveValue(const Setting &setting);
|
||||
void doSave();
|
||||
|
||||
protected:
|
||||
INIFile m_ini;
|
||||
|
||||
QString m_filePath;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue