mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
homescreens/halcyon: fix plasmoid activation
This commit is contained in:
parent
e3546312b2
commit
4b5c6ca3f5
1 changed files with 8 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue