GODT-1298: signal GUI is ready and rise window

This commit is contained in:
Jakub
2021-09-13 17:22:53 +02:00
parent 85c06809d2
commit aeceb7d593
9 changed files with 94 additions and 30 deletions

View File

@ -78,6 +78,14 @@ ApplicationWindow {
}
}
Connections {
target: root.backend
onShowMainWindow: {
root.showAndRise()
}
}
StackLayout {
id: contentLayout
@ -187,4 +195,12 @@ ApplicationWindow {
contentLayout._showSetup = false
}
}
function showAndRise() {
root.show()
root.raise()
if (!root.active) {
root.requestActivate()
}
}
}