PageShare readonly properties

This commit is contained in:
Cyril Anisimov 2024-12-15 23:12:59 +01:00
parent 3a62f1f20b
commit 10e91b06f4

View file

@ -117,38 +117,38 @@ PageType {
QtObject { QtObject {
id: amneziaConnectionFormat id: amneziaConnectionFormat
property string name: qsTr("For the AmneziaVPN app") readonly property string name: qsTr("For the AmneziaVPN app")
property var type: PageShare.ConfigType.AmneziaConnection readonly property int type: PageShare.ConfigType.AmneziaConnection
} }
QtObject { QtObject {
id: openVpnConnectionFormat id: openVpnConnectionFormat
property string name: qsTr("OpenVPN native format") readonly property string name: qsTr("OpenVPN native format")
property var type: PageShare.ConfigType.OpenVpn readonly property int type: PageShare.ConfigType.OpenVpn
} }
QtObject { QtObject {
id: wireGuardConnectionFormat id: wireGuardConnectionFormat
property string name: qsTr("WireGuard native format") readonly property string name: qsTr("WireGuard native format")
property var type: PageShare.ConfigType.WireGuard readonly property int type: PageShare.ConfigType.WireGuard
} }
QtObject { QtObject {
id: awgConnectionFormat id: awgConnectionFormat
property string name: qsTr("AmneziaWG native format") readonly property string name: qsTr("AmneziaWG native format")
property var type: PageShare.ConfigType.Awg readonly property int type: PageShare.ConfigType.Awg
} }
QtObject { QtObject {
id: shadowSocksConnectionFormat id: shadowSocksConnectionFormat
property string name: qsTr("Shadowsocks native format") readonly property string name: qsTr("Shadowsocks native format")
property var type: PageShare.ConfigType.ShadowSocks readonly property int type: PageShare.ConfigType.ShadowSocks
} }
QtObject { QtObject {
id: cloakConnectionFormat id: cloakConnectionFormat
property string name: qsTr("Cloak native format") readonly property string name: qsTr("Cloak native format")
property var type: PageShare.ConfigType.Cloak readonly property int type: PageShare.ConfigType.Cloak
} }
QtObject { QtObject {
id: xrayConnectionFormat id: xrayConnectionFormat
property string name: qsTr("XRay native format") readonly property string name: qsTr("XRay native format")
property var type: PageShare.ConfigType.Xray readonly property int type: PageShare.ConfigType.Xray
} }
FlickableType { FlickableType {
@ -343,8 +343,8 @@ PageType {
clickedFunction: function() { clickedFunction: function() {
handler() handler()
if (serverSelector.currentIndex !== serverSelectorListView.currentIndex) { if (serverSelector.selectedIndex !== serverSelectorListView.selectedIndex) {
serverSelector.currentIndex = serverSelectorListView.currentIndex serverSelector.selectedIndex = serverSelectorListView.currentIndex
serverSelector.severSelectorIndexChanged() serverSelector.severSelectorIndexChanged()
} }