add reset paths button to settings (#4384)

This commit is contained in:
ebbit1q 2021-09-14 22:10:40 +02:00 committed by GitHub
parent 1e995cd97c
commit c8bb8b0aae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 88 additions and 37 deletions

View file

@ -129,6 +129,7 @@ private:
void translateLegacySettings();
QString getSafeConfigPath(QString configEntry, QString defaultPath) const;
QString getSafeConfigFilePath(QString configEntry, QString defaultPath) const;
void loadPaths();
bool rememberGameSettings;
QList<ReleaseChannel *> releaseChannels;
bool isPortableBuild;
@ -473,6 +474,8 @@ public:
}
static SettingsCache &instance();
void resetPaths();
public slots:
void setDownloadSpoilerStatus(bool _spoilerStatus);