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,7 +7,9 @@ function onExitRequested(exitCode) {
|
|||
|
||||
|
||||
function onAlertRequested(msec) {
|
||||
if (Qt.application.state != Qt.ApplicationActive) {
|
||||
window.alert(msec)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user