From 908a63ba444e847d398dacedd6e54a515cf64b8c Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Thu, 9 Apr 2026 10:14:33 +0200 Subject: [PATCH] Close app drawer when a new window is created In convergence mode the app drawer stays open after launching an application. Connect to WindowUtil.onWindowCreated and close the drawer automatically so the user lands on the new window. --- containments/homescreens/folio/qml/main.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/containments/homescreens/folio/qml/main.qml b/containments/homescreens/folio/qml/main.qml index 31e4446d..ce17736a 100644 --- a/containments/homescreens/folio/qml/main.qml +++ b/containments/homescreens/folio/qml/main.qml @@ -64,6 +64,16 @@ ContainmentItem { screenGeometry: Plasmoid.containment.screenGeometry } + // Close app drawer when a new window appears + Connections { + target: WindowPlugin.WindowUtil + function onWindowCreated() { + if (folio.HomeScreenState.viewState === Folio.HomeScreenState.AppDrawerView) { + folio.HomeScreenState.closeAppDrawer(); + } + } + } + function homeAction() { const isInWindow = (!WindowPlugin.WindowUtil.isShowingDesktop && windowMaximizedTracker.showingWindow);