From 9786deef48696da0652e1d0ca1ab8880e14bfb5d Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Fri, 26 Aug 2022 08:02:44 +0200 Subject: [PATCH] GODT-1820: hide app windows and tray icon before initating app shutdown. --- internal/frontend/bridge-gui/bridge-gui/qml/Bridge.qml | 2 ++ internal/frontend/bridge-gui/bridge-gui/qml/StatusWindow.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/Bridge.qml b/internal/frontend/bridge-gui/bridge-gui/qml/Bridge.qml index c19b9f7b..75cc2a6f 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/Bridge.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/Bridge.qml @@ -89,6 +89,8 @@ QtObject { } onQuit: { + mainWindow.hide() + trayIcon.visible = false Backend.quit() } diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/StatusWindow.qml b/internal/frontend/bridge-gui/bridge-gui/qml/StatusWindow.qml index 3fcfb0eb..50bcd1f6 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/StatusWindow.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/StatusWindow.qml @@ -295,8 +295,8 @@ Window { colorScheme: root.colorScheme text: qsTr("Quit Bridge") onClicked: { - root.quit() root.close() + root.quit() } }