homescreens/halcyon: fix plasmoid activation

This commit is contained in:
Yari Polla 2023-03-12 21:35:02 +01:00
parent e3546312b2
commit 4b5c6ca3f5

View file

@ -45,25 +45,21 @@ MobileShell.HomeScreen {
// - minimize windows (only if we are in an app)
// - open app drawer
// - close app drawer and, if necessary, restore windows
if (!plasmoid.nativeInterface.showingDesktop && !MobileShellState.Shell.homeScreenVisible
|| MobileShellState.Shell.actionDrawerVisible
if (!MobileShell.WindowUtil.showDesktop && !MobileShellState.Shell.homeScreenVisible
|| search.isOpen
) {
// Always close action drawer
if (MobileShellState.Shell.actionDrawerVisible) {
MobileShellState.Shell.closeActionDrawer();
}
// Always close the search widget as well
// Always close the search widget
if (search.isOpen) {
search.close();
}
plasmoid.nativeInterface.showingDesktop = true;
homescreen.page = 0;
MobileShell.WindowUtil.showDesktop = true;
} else if (homescreen.page == 0) {
homescreen.page = 1;
} else {
plasmoid.nativeInterface.showingDesktop = false;
MobileShell.WindowUtil.showDesktop = false;
homescreen.page = 0;
}
}