temporarily disabled the drawer close button

This commit is contained in:
vladimir.kuznetsov 2023-10-14 20:59:03 +05:00
parent ffc9e5823a
commit 512ac74ee6
4 changed files with 22 additions and 21 deletions

View file

@ -66,7 +66,7 @@ QMap<amnezia::Proto, QString> ProtocolProps::protocolHumanNames()
{ Proto::ShadowSocks, "ShadowSocks" },
{ Proto::Cloak, "Cloak" },
{ Proto::WireGuard, "WireGuard" },
{ Proto::WireGuard, "AmneziaWG" },
{ Proto::Awg, "AmneziaWG" },
{ Proto::Ikev2, "IKEv2" },
{ Proto::L2tp, "L2TP" },

View file

@ -1704,22 +1704,22 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="192"/>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="166"/>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="207"/>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="181"/>
<source>Network protocol</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="223"/>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="197"/>
<source>Port</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="239"/>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="213"/>
<source>Install</source>
<translation type="unfinished"></translation>
</message>

View file

@ -1807,22 +1807,22 @@ It&apos;s okay as long as it&apos;s from someone you trust.</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="192"/>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="166"/>
<source>Close</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="207"/>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="181"/>
<source>Network protocol</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="223"/>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="197"/>
<source>Port</source>
<translation></translation>
</message>
<message>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="239"/>
<location filename="../ui/qml/Pages2/PageSetupWizardProtocolSettings.qml" line="213"/>
<source>Install</source>
<translation></translation>
</message>

View file

@ -44,9 +44,9 @@ PageType {
tabBar.enabled = !visible
}
function onShowTopCloseButton(visible) {
topCloseButton.visible = visible
}
// function onShowTopCloseButton(visible) {
// topCloseButton.visible = visible
// }
function onEnableTabBar(enabled) {
tabBar.enabled = enabled
@ -137,10 +137,10 @@ PageType {
tabBarStackView.push(pagePath, { "objectName" : pagePath })
}
onWidthChanged: {
topCloseButton.x = tabBarStackView.x + tabBarStackView.width -
topCloseButton.buttonWidth - topCloseButton.rightPadding
}
// onWidthChanged: {
// topCloseButton.x = tabBarStackView.x + tabBarStackView.width -
// topCloseButton.buttonWidth - topCloseButton.rightPadding
// }
}
TabBar {
@ -234,11 +234,12 @@ PageType {
z: 1
}
TopCloseButtonType {
id: topCloseButton
x: tabBarStackView.width - topCloseButton.buttonWidth - topCloseButton.rightPadding
z: 1
}
// TopCloseButtonType {
// id: topCloseButton
// x: tabBarStackView.width - topCloseButton.buttonWidth - topCloseButton.rightPadding
// z: 1
// }
ConnectionTypeSelectionDrawer {
id: connectionTypeSelection