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(
modelSources[["Room", userId]] || [], "room_id", roomId
) || "waiting"
onRoomInfoChanged: {
if (roomInfo.left) {
// The room will most likely be gone on client restart

View File

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