destroy notification windows after closing

This commit is contained in:
Iuri Matias 2020-07-15 18:00:18 -04:00
parent 262941e839
commit 18fdd3f60b
1 changed files with 6 additions and 1 deletions

View File

@ -47,6 +47,8 @@ Item {
onClicked: { onClicked: {
timer.stop() timer.stop()
notificationWindowSub.close() notificationWindowSub.close()
notificationWindowSub.destroy()
mainWin.destroy()
applicationWindow.raise() applicationWindow.raise()
chatsModel.setActiveChannel(chatId); chatsModel.setActiveChannel(chatId);
} }
@ -59,7 +61,10 @@ Item {
interval: 4000; interval: 4000;
running: false; running: false;
repeat: false repeat: false
onTriggered: notificationWindowSub.close() onTriggered: {
notificationWindowSub.close()
notificationWindowSub.destroy()
}
} }
onVisibleChanged: { onVisibleChanged: {
if(visible) { if(visible) {