From 872ff75d6fe7d7b1f9e22b7d3cae43e3f74f80de Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sun, 21 Oct 2018 10:39:18 +0800 Subject: [PATCH] Use window.active property. --- imports/Spectral/Page/Room.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/Spectral/Page/Room.qml b/imports/Spectral/Page/Room.qml index f87ba95..7af5144 100644 --- a/imports/Spectral/Page/Room.qml +++ b/imports/Spectral/Page/Room.qml @@ -1,5 +1,5 @@ import QtQuick 2.9 RoomForm { - roomListModel.onNewMessage: if (!window.visible) spectralController.postNotification(roomId, eventId, roomName, senderName, text, icon, iconPath) + roomListModel.onNewMessage: if (!window.active) spectralController.postNotification(roomId, eventId, roomName, senderName, text, icon, iconPath) }