Make drawer handles disappear when PlayerControls are opened

This commit is contained in:
Bart De Vries 2021-04-15 22:36:06 +02:00
parent 6eca639ce4
commit 4edacbc5e8
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ Kirigami.ApplicationWindow {
isMenu: false
// make room at the bottom for miniplayer
handle.anchors.bottomMargin: ( audio.entry ? ( footerLoader.item.contentY == 0 ? miniplayerSize : 0 ) : 0 ) + Kirigami.Units.smallSpacing
handleVisible: !audio.entry || footerLoader.item.contentY == 0
actions: [
Kirigami.PagePoolAction {
text: i18n("Queue")
@ -82,6 +83,7 @@ Kirigami.ApplicationWindow {
id: contextDrawer
// make room at the bottom for miniplayer
handle.anchors.bottomMargin: ( audio.entry ? ( footerLoader.item.contentY == 0 ? miniplayerSize : 0 ) : 0 ) + Kirigami.Units.smallSpacing
handleVisible: !audio.entry || footerLoader.item.contentY == 0
}
AudioManager {