Don't set alert if window already focused

This commit is contained in:
miruka 2019-08-16 14:44:45 -04:00
parent 1061498160
commit 0c493f88d8
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@ HPage {
readonly property var roomInfo: Utils.getItem( readonly property var roomInfo: Utils.getItem(
modelSources[["Room", userId]] || [], "room_id", roomId modelSources[["Room", userId]] || [], "room_id", roomId
) || "waiting" ) || "waiting"
onRoomInfoChanged: { onRoomInfoChanged: {
if (roomInfo.left) { if (roomInfo.left) {
// The room will most likely be gone on client restart // The room will most likely be gone on client restart

View File

@ -7,7 +7,9 @@ function onExitRequested(exitCode) {
function onAlertRequested(msec) { function onAlertRequested(msec) {
window.alert(msec) if (Qt.application.state != Qt.ApplicationActive) {
window.alert(msec)
}
} }