Added program version number to the settings file. Currently it is merely

written to and not used.
half-duplex
Elliott Liggett 2022-11-26 20:53:12 -08:00
rodzic b25c8a93f3
commit 39caf41905
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -6,6 +6,7 @@
#include "wfviewtypes.h"
struct preferences {
QString version;
bool useFullScreen;
bool useSystemTheme;
bool drawPeaks;

Wyświetl plik

@ -2098,6 +2098,10 @@ void wfmain::saveSettings()
qInfo(logSystem()) << "Saving settings to " << settings->fileName();
// Basic things to load:
settings->beginGroup("Program");
settings->setValue("version", QString(WFVIEW_VERSION));
settings->endGroup();
// UI: (full screen, dark theme, draw peaks, colors, etc)
settings->beginGroup("Interface");
settings->setValue("UseFullScreen", prefs.useFullScreen);