modal:Kirigami.Settings.isMobile||(applicationWindow().width<Kirigami.Units.gridUnit*50&&!collapsed)// Only modal when not collapsed, otherwise collapsed won't show.
// Changing the modality automatically opens the drawer, so making the sidebar collapsed opens the
// drawer. This is more intuitive than having two buttons each of which handle different aspects of
// the drawer.
collapsed:Config.forceCollapsedSidebar
modal:Kirigami.Settings.isMobile
handleVisible:modal
handleClosedIcon.source:null
handleOpenIcon.source:null
drawerOpen:!Kirigami.Settings.isMobile
// We want the modal drawer to close into a collapsed non-modal drawer, not to close the drawer altogether.
// Otherwise the collapsed drawer would not be visible (and without the handle we'd have no way to open it).
// We also have to re-notify because of some dumb glitch, idk.