diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-25 22:47:34 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:05 -0500 |
| commit | 0f0313874aa90c66acaac9082f5ba6fbd29300ef (patch) | |
| tree | d9dbb5b7e479f88656379b9b4617632b20dce601 /src/settings.h | |
| parent | dfbcf8ec4c6da4d2d098403a01e7ec19b587e836 (diff) | |
new GlobalSettings class to manage the registry
close the create instance dialog when launch is unchecked
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h index c723faec..54f1bb5b 100644 --- a/src/settings.h +++ b/src/settings.h @@ -827,6 +827,22 @@ private: }; +// manages global settings in the registry +// +class GlobalSettings +{ +public: + // migrates the old settings from the Tannin key to the new one + static void updateRegistryKey(); + + static QString currentInstance(); + static void setCurrentInstance(const QString& s); + +private: + static QSettings settings(); +}; + + // helper class that calls restoreGeometry() in the constructor and // saveGeometry() in the destructor // |
