changed the location of Auto connect item from settings connections page to settings application page

This commit is contained in:
Shehab Ahmed 2024-02-22 02:31:51 +02:00
parent 3012559627
commit 9f1210d18f
2 changed files with 21 additions and 21 deletions

View file

@ -84,6 +84,27 @@ PageType {
visible: !GC.isMobile() visible: !GC.isMobile()
} }
SwitcherType {
visible: !GC.isMobile()
Layout.fillWidth: true
Layout.margins: 16
text: qsTr("Auto connect")
descriptionText: qsTr("Connect to VPN on app start")
checked: SettingsController.isAutoConnectEnabled()
onCheckedChanged: {
if (checked !== SettingsController.isAutoConnectEnabled()) {
SettingsController.toggleAutoConnect(checked)
}
}
}
DividerType {
visible: !GC.isMobile()
}
SwitcherType { SwitcherType {
visible: !GC.isMobile() visible: !GC.isMobile()

View file

@ -41,27 +41,6 @@ PageType {
headerText: qsTr("Connection") headerText: qsTr("Connection")
} }
SwitcherType {
visible: !GC.isMobile()
Layout.fillWidth: true
Layout.margins: 16
text: qsTr("Auto connect")
descriptionText: qsTr("Connect to VPN on app start")
checked: SettingsController.isAutoConnectEnabled()
onCheckedChanged: {
if (checked !== SettingsController.isAutoConnectEnabled()) {
SettingsController.toggleAutoConnect(checked)
}
}
}
DividerType {
visible: !GC.isMobile()
}
SwitcherType { SwitcherType {
Layout.fillWidth: true Layout.fillWidth: true
Layout.margins: 16 Layout.margins: 16