Merge pull request #539 from amnezia-vpn/bugfix/android

Fix Android bugs
This commit is contained in:
pokamest 2024-01-28 05:25:38 -08:00 committed by GitHub
commit 5c5935c738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 96 additions and 62 deletions

View file

@ -25,7 +25,7 @@ DrawerType {
property string configExtension: ".vpn"
property string configCaption: qsTr("Save AmneziaVPN config")
property string configFileName: "amnezia_config.vpn"
property string configFileName: "amnezia_config"
width: parent.width
height: parent.height * 0.9

View file

@ -66,8 +66,8 @@ PageType {
ColumnLayout {
Layout.alignment: Qt.AlignBaseline
Layout.preferredWidth: Qt.platform.os === "ios"? 0 : root.width / 3
visible: Qt.platform.os !== "ios"
Layout.preferredWidth: GC.isMobile() ? 0 : root.width / 3
visible: !GC.isMobile()
ImageButtonType {
Layout.alignment: Qt.AlignHCenter
@ -91,7 +91,7 @@ PageType {
ColumnLayout {
Layout.alignment: Qt.AlignBaseline
Layout.preferredWidth: root.width / ( Qt.platform.os === "ios" ? 2 : 3 )
Layout.preferredWidth: root.width / ( GC.isMobile() ? 2 : 3 )
ImageButtonType {
Layout.alignment: Qt.AlignHCenter
@ -132,7 +132,7 @@ PageType {
ColumnLayout {
Layout.alignment: Qt.AlignBaseline
Layout.preferredWidth: root.width / ( Qt.platform.os === "ios" ? 2 : 3 )
Layout.preferredWidth: root.width / ( GC.isMobile() ? 2 : 3 )
ImageButtonType {
Layout.alignment: Qt.AlignHCenter