From 1d29e4781848c24761f2f3d78889d9a4cf10e2b2 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 9 Apr 2021 06:07:59 -0400 Subject: [PATCH] Fix warning when quitting before config is loaded --- src/gui/Window.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/Window.qml b/src/gui/Window.qml index 8c92198b..d9e728a6 100644 --- a/src/gui/Window.qml +++ b/src/gui/Window.qml @@ -98,9 +98,9 @@ ApplicationWindow { visible: ArgumentParser.ready && ! ArgumentParser.startInTray color: "transparent" - onClosing: { - close.accepted = ! settings.General.close_to_tray - settings.General.close_to_tray ? hide() : Qt.quit() + onClosing: if (py.ready && settings.General.close_to_tray) { + close.accepted = false + hide() } PythonRootBridge { id: py }