Don't set alert if window already focused
This commit is contained in:
@@ -7,7 +7,9 @@ function onExitRequested(exitCode) {
|
||||
|
||||
|
||||
function onAlertRequested(msec) {
|
||||
window.alert(msec)
|
||||
if (Qt.application.state != Qt.ApplicationActive) {
|
||||
window.alert(msec)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user