From 18fdd3f60b9418658e77d08f941cb366b90eb02c Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 15 Jul 2020 18:00:18 -0400 Subject: [PATCH] destroy notification windows after closing --- ui/shared/NotificationWindow.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/shared/NotificationWindow.qml b/ui/shared/NotificationWindow.qml index fc4689af2b..397404c9bd 100644 --- a/ui/shared/NotificationWindow.qml +++ b/ui/shared/NotificationWindow.qml @@ -47,6 +47,8 @@ Item { onClicked: { timer.stop() notificationWindowSub.close() + notificationWindowSub.destroy() + mainWin.destroy() applicationWindow.raise() chatsModel.setActiveChannel(chatId); } @@ -59,7 +61,10 @@ Item { interval: 4000; running: false; repeat: false - onTriggered: notificationWindowSub.close() + onTriggered: { + notificationWindowSub.close() + notificationWindowSub.destroy() + } } onVisibleChanged: { if(visible) {