fix: Settings reset on windows, create new profile dir when not in native mode
fixes: #8916
This commit is contained in:
parent
138ede0536
commit
a6dc455477
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ void clearSettings(bool enableRestart)
|
||||||
profileDir.removeRecursively();
|
profileDir.removeRecursively();
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
if (Settings::isNativeMode()) {
|
if (!Settings::isNativeMode()) {
|
||||||
// make a new empty portable settings file
|
// make a new empty portable settings file
|
||||||
if (profileDir.mkpath(Settings::settingsPath())) {
|
if (profileDir.mkpath(Settings::settingsPath())) {
|
||||||
QFile file(Settings::settingsFile());
|
QFile file(Settings::settingsFile());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue