Use window.active property.

This commit is contained in:
Black Hat 2018-10-21 10:39:18 +08:00
parent aae84ba65f
commit 872ff75d6f
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}