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);