Fix action drawer not opening on click in convergence

open() alone does not set intendedToBeVisible, so the drawer
immediately closes itself. Call the proper toggle path instead.
Also hide the drag handle since convergence users click.
This commit is contained in:
Marco Allegretti 2026-04-15 14:58:15 +02:00
parent d8f9924c73
commit b77bf41cdc
3 changed files with 12 additions and 2 deletions

View file

@ -34,8 +34,9 @@ MobileShell.SwipeArea {
}
function startSwipeWithPoint(point) {
// if the user swiped from the top left, otherwise it's from the top right
if (point.x < root.width / 2) {
if (ShellSettings.Settings.convergenceModeEnabled) {
actionDrawer.openToPinnedMode = false;
} else if (point.x < root.width / 2) {
actionDrawer.openToPinnedMode = ShellSettings.Settings.actionDrawerTopLeftMode == ShellSettings.Settings.Pinned;
} else {
actionDrawer.openToPinnedMode = ShellSettings.Settings.actionDrawerTopRightMode == ShellSettings.Settings.Pinned;
@ -69,6 +70,8 @@ MobileShell.SwipeArea {
if (actionDrawer.intendedToBeVisible) {
actionDrawer.close();
} else {
actionDrawer.openToPinnedMode = false;
actionDrawer.intendedToBeVisible = true;
actionDrawer.open();
}
}

View file

@ -100,6 +100,7 @@ MobileShell.BaseItem {
id: handle
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
visible: !ShellSettings.Settings.convergenceModeEnabled
opacity: brightnessPressedValue
}
}

View file

@ -33,6 +33,10 @@ Item {
target: MobileShellState.ShellDBusClient
function onOpenActionDrawerRequested() {
if (ShellSettings.Settings.convergenceModeEnabled) {
drawer.actionDrawer.openToPinnedMode = false;
drawer.actionDrawer.intendedToBeVisible = true;
}
drawer.actionDrawer.open();
}
@ -129,6 +133,8 @@ Item {
if (drawer.actionDrawer.intendedToBeVisible) {
drawer.actionDrawer.close();
} else {
drawer.actionDrawer.openToPinnedMode = false;
drawer.actionDrawer.intendedToBeVisible = true;
drawer.actionDrawer.open();
}
}