From 812c948685d8db5b9b9b05e732e98112745c742b Mon Sep 17 00:00:00 2001 From: DrRac27 Date: Sun, 6 Feb 2022 00:57:39 +0100 Subject: [PATCH] Fix "Opening already running instance" In src/gui/TrayIcon.qml the showUpWatcher looked for the settingsFolder in the qrc file context so it didn't notice changes in the real settingsFolder. Fixes #126 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 82429f4d..b4035b39 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -489,7 +489,7 @@ int main(int argc, char *argv[]) { app.exit(EXIT_FAILURE); } - component.create(objectContext)->setProperty("settingsFolder", settingsFolder); + component.create(objectContext)->setProperty("settingsFolder", "file://"+settingsFolder); // Finally, execute the app. Return its exit code after clearing the lock. int exit_code = app.exec();