mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
bugfix: fixed visability of share drawer
This commit is contained in:
@@ -26,8 +26,6 @@ DrawerType2 {
|
|||||||
property string copyButtonText: qsTr("Copy")
|
property string copyButtonText: qsTr("Copy")
|
||||||
property bool showSettingsButtonVisible: true
|
property bool showSettingsButtonVisible: true
|
||||||
|
|
||||||
property bool contentVisible
|
|
||||||
|
|
||||||
property string configExtension: ".vpn"
|
property string configExtension: ".vpn"
|
||||||
property string configCaption: qsTr("Save AmneziaVPN config")
|
property string configCaption: qsTr("Save AmneziaVPN config")
|
||||||
property string configFileName: "amnezia_config"
|
property string configFileName: "amnezia_config"
|
||||||
@@ -75,8 +73,6 @@ DrawerType2 {
|
|||||||
header: ColumnLayout {
|
header: ColumnLayout {
|
||||||
width: listView.width
|
width: listView.width
|
||||||
|
|
||||||
visible: root.contentVisible
|
|
||||||
|
|
||||||
BasicButtonType {
|
BasicButtonType {
|
||||||
id: shareButton
|
id: shareButton
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|||||||
@@ -163,7 +163,6 @@ PageType {
|
|||||||
shareConnectionDrawer.headerText = qsTr("Amnezia Premium subscription key")
|
shareConnectionDrawer.headerText = qsTr("Amnezia Premium subscription key")
|
||||||
|
|
||||||
shareConnectionDrawer.openTriggered()
|
shareConnectionDrawer.openTriggered()
|
||||||
shareConnectionDrawer.contentVisible = false
|
|
||||||
shareConnectionDrawer.showSettingsButtonVisible = false;
|
shareConnectionDrawer.showSettingsButtonVisible = false;
|
||||||
shareConnectionDrawer.shareButtonText = qsTr("Save VPN key to file")
|
shareConnectionDrawer.shareButtonText = qsTr("Save VPN key to file")
|
||||||
shareConnectionDrawer.copyButtonText = qsTr("Copy VPN key")
|
shareConnectionDrawer.copyButtonText = qsTr("Copy VPN key")
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ PageType {
|
|||||||
shareConnectionDrawer.configContentHeaderText = qsTr("File with connection settings to ") + serverSelector.text
|
shareConnectionDrawer.configContentHeaderText = qsTr("File with connection settings to ") + serverSelector.text
|
||||||
|
|
||||||
shareConnectionDrawer.openTriggered()
|
shareConnectionDrawer.openTriggered()
|
||||||
shareConnectionDrawer.contentVisible = true
|
|
||||||
PageController.showBusyIndicator(true)
|
PageController.showBusyIndicator(true)
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|||||||
@@ -141,7 +141,6 @@ PageType {
|
|||||||
shareConnectionDrawer.configContentHeaderText = qsTr("File with connection settings to ") + serverSelector.text
|
shareConnectionDrawer.configContentHeaderText = qsTr("File with connection settings to ") + serverSelector.text
|
||||||
|
|
||||||
shareConnectionDrawer.openTriggered()
|
shareConnectionDrawer.openTriggered()
|
||||||
shareConnectionDrawer.contentVisible = true
|
|
||||||
|
|
||||||
PageController.showBusyIndicator(false)
|
PageController.showBusyIndicator(false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user