mirror of
https://github.com/deskflow/deskflow.git
synced 2026-07-07 21:07:23 +08:00
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
@ -44,7 +44,7 @@ void clearSettings(bool enableRestart)
|
||||
profileDir.removeRecursively();
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
if (Settings::isNativeMode()) {
|
||||
if (!Settings::isNativeMode()) {
|
||||
// make a new empty portable settings file
|
||||
if (profileDir.mkpath(Settings::settingsPath())) {
|
||||
QFile file(Settings::settingsFile());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user