mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
@@ -20,6 +20,21 @@ import "../Components"
|
||||
PageType {
|
||||
id: root
|
||||
|
||||
Connections {
|
||||
target: Qt.application
|
||||
|
||||
function onStateChanged() {
|
||||
if (Qt.application.state !== Qt.ApplicationActive) {
|
||||
if (drawer.isOpened) {
|
||||
drawer.closeTriggered()
|
||||
}
|
||||
if (homeSplitTunnelingDrawer.isOpened) {
|
||||
homeSplitTunnelingDrawer.closeTriggered()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
objectName: "pageControllerConnections"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user