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)
|
// - minimize windows (only if we are in an app)
|
||||||
// - open app drawer
|
// - open app drawer
|
||||||
// - close app drawer and, if necessary, restore windows
|
// - close app drawer and, if necessary, restore windows
|
||||||
if (!plasmoid.nativeInterface.showingDesktop && !MobileShellState.Shell.homeScreenVisible
|
if (!MobileShell.WindowUtil.showDesktop && !MobileShellState.Shell.homeScreenVisible
|
||||||
|| MobileShellState.Shell.actionDrawerVisible
|
|
||||||
|| search.isOpen
|
|| search.isOpen
|
||||||
) {
|
) {
|
||||||
// Always close action drawer
|
// Always close the search widget
|
||||||
if (MobileShellState.Shell.actionDrawerVisible) {
|
|
||||||
MobileShellState.Shell.closeActionDrawer();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Always close the search widget as well
|
|
||||||
if (search.isOpen) {
|
if (search.isOpen) {
|
||||||
search.close();
|
search.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
plasmoid.nativeInterface.showingDesktop = true;
|
homescreen.page = 0;
|
||||||
|
|
||||||
|
MobileShell.WindowUtil.showDesktop = true;
|
||||||
} else if (homescreen.page == 0) {
|
} else if (homescreen.page == 0) {
|
||||||
homescreen.page = 1;
|
homescreen.page = 1;
|
||||||
} else {
|
} else {
|
||||||
plasmoid.nativeInterface.showingDesktop = false;
|
MobileShell.WindowUtil.showDesktop = false;
|
||||||
homescreen.page = 0;
|
homescreen.page = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue