From c392a473b945cf04d4c3b8a2cf422a61b62b2cd2 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Mon, 20 Sep 2021 17:13:23 +0200 Subject: [PATCH] fix(@desktop/general): fix the scenarios for closing the app on Mac (minimise on close On / Off) Fixes: #3378 --- ui/main.qml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/ui/main.qml b/ui/main.qml index 26c2303304..3989578dcb 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -159,18 +159,8 @@ StatusWindow { Connections { target: applicationWindow onClosing: { - if (loader.sourceComponent == login) { - applicationWindow.visible = false - close.accepted = false - } - else if (loader.sourceComponent == app) { - if (appSettings.quitOnClose) { - close.accepted = true - } else { - applicationWindow.visible = false - close.accepted = false - } - } + loader.sourceComponent = undefined + close.accepted = true } onActiveChanged: {