Merge pull request #355 from amnezia-vpn/fixbug/not_hide_topright_corner_button

Fixbug/not hide topright corner button
This commit is contained in:
Nethius 2023-09-28 23:39:22 +03:00 committed by GitHub
commit b2072c06b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,24 +50,22 @@ Drawer {
if (PageController.getInitialPageNavigationBarColor() !== 0xFF1C1D21) { if (PageController.getInitialPageNavigationBarColor() !== 0xFF1C1D21) {
PageController.updateNavigationBarColor(0xFF1C1D21) PageController.updateNavigationBarColor(0xFF1C1D21)
} }
}
onOpened: {
isOpened = true
if (needCloseButton) { if (needCloseButton) {
PageController.drawerOpen() PageController.drawerOpen()
} }
} }
onAboutToHide: { onClosed: {
isOpened = false
if (needCloseButton) { if (needCloseButton) {
PageController.drawerClose() PageController.drawerClose()
} }
}
onOpened: {
isOpened = true
}
onClosed: {
isOpened = false
var initialPageNavigationBarColor = PageController.getInitialPageNavigationBarColor() var initialPageNavigationBarColor = PageController.getInitialPageNavigationBarColor()
if (initialPageNavigationBarColor !== 0xFF1C1D21) { if (initialPageNavigationBarColor !== 0xFF1C1D21) {