Don't set alert if window already focused
This commit is contained in:
parent
1061498160
commit
0c493f88d8
|
@ -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
|
||||
|
|
|
@ -7,8 +7,10 @@ function onExitRequested(exitCode) {
|
|||
|
||||
|
||||
function onAlertRequested(msec) {
|
||||
if (Qt.application.state != Qt.ApplicationActive) {
|
||||
window.alert(msec)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function onCoroutineDone(uuid, result) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user