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