Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:amnezia-vpn/amnezia-client into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
Nethius committed Oct 3, 2023
2 parents 2664a52 + 2447ab4 commit 21f6c7b
Show file tree
Hide file tree
Showing 4 changed files with 201 additions and 193 deletions.
1 change: 0 additions & 1 deletion client/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,5 @@
<file>ui/qml/Controls2/ListViewWithLabelsType.qml</file>
<file>ui/qml/Pages2/PageServiceDnsSettings.qml</file>
<file>ui/qml/Controls2/TopCloseButtonType.qml</file>
<file>ui/qml/Components/HomeRootMenuButton.qml</file>
</qresource>
</RCC>
127 changes: 0 additions & 127 deletions client/ui/qml/Components/HomeRootMenuButton.qml

This file was deleted.

28 changes: 0 additions & 28 deletions client/ui/qml/Controls2/DrawerType.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import QtQuick.Controls
Drawer {
id: drawer
property bool needCloseButton: true
property bool isOpened: false

Connections {
target: PageController
Expand Down Expand Up @@ -53,16 +52,12 @@ Drawer {
}

onOpened: {
isOpened = true

if (needCloseButton) {
PageController.drawerOpen()
}
}

onClosed: {
isOpened = false

if (needCloseButton) {
PageController.drawerClose()
}
Expand All @@ -72,27 +67,4 @@ Drawer {
PageController.updateNavigationBarColor(initialPageNavigationBarColor)
}
}


onPositionChanged: {
if (isOpened && (position <= 0.99 && position >= 0.95)) {
mouseArea.canceled()
drawer.close()
mouseArea.exited()
dropArea.exited()
}
}

DropArea {
id: dropArea
}

MouseArea {
id: mouseArea
anchors.fill: parent

onPressed: {
isOpened = true
}
}
}
Loading

0 comments on commit 21f6c7b

Please sign in to comment.