Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
db5cad20
Commit
db5cad20
authored
Oct 12, 2022
by
Claudio Cambra
Browse files
Fix
!277
regression which makes the main drawer always init as collapsed
Signed-off-by:
Claudio Cambra
<
claudio.cambra@gmail.com
>
parent
50407a87
Pipeline
#246436
passed with stage
in 2 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/Drawers/MainDrawer.qml
View file @
db5cad20
...
...
@@ -67,7 +67,8 @@ Kirigami.OverlayDrawer {
// Modal when mobile, or when the window is narrow and the drawer is expanded/being expanded
modal
:
Kirigami
.
Settings
.
isMobile
||
(
applicationWindow
().
width
<
narrowWindowWidth
&&
(
!
collapsed
||
width
>
collapsedWidth
)
&&
!
refuseModal
)
collapsed
:
!
Kirigami
.
Settings
.
isMobile
&&
(
Config
.
forceCollapsedMainDrawer
||
narrowWindowWidth
)
collapsed
:
!
Kirigami
.
Settings
.
isMobile
&&
(
Config
.
forceCollapsedMainDrawer
||
applicationWindow
().
width
<
narrowWindowWidth
)
onDrawerOpenChanged
:
{
// We want the drawer to be open but collapsed if we close it when it is modal on desktop
if
(
!
Kirigami
.
Settings
.
isMobile
&&
!
drawerOpen
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment