Skip to content

Commit

Permalink
fixed: topright-corner button not visible when drawer closed
Browse files Browse the repository at this point in the history
  • Loading branch information
ronoaer committed Sep 18, 2023
1 parent 814c574 commit f7370a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/ui/qml/Controls2/DrawerType.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ Drawer {
if (PageController.getInitialPageNavigationBarColor() !== 0xFF1C1D21) {
PageController.updateNavigationBarColor(0xFF1C1D21)
}
}

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

onAboutToHide: {
onClosed: {
if (needCloseButton) {
PageController.drawerClose()
}
}

onClosed: {
var initialPageNavigationBarColor = PageController.getInitialPageNavigationBarColor()
if (initialPageNavigationBarColor !== 0xFF1C1D21) {
PageController.updateNavigationBarColor(initialPageNavigationBarColor)
Expand Down

0 comments on commit f7370a0

Please sign in to comment.