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: {
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) {