homescreens/folio: Minimize all windows when pressing start key rather than activate "show desktop" mode

Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/333

There is some behavior with "show desktop" mode that we do not want (as it self-restores under certain focus conditions).

Just simply minimize all windows instead.
This commit is contained in:
Devin Lin 2024-03-16 00:06:42 -04:00
parent 79c982c633
commit 7df864904a

View file

@ -88,7 +88,7 @@ ContainmentItem {
Folio.HomeScreenState.closeAppDrawer();
Folio.HomeScreenState.goToPage(0);
WindowPlugin.WindowUtil.isShowingDesktop = true;
WindowPlugin.WindowUtil.minimizeAll();
}
} else { // if we are on the homescreen
switch (Folio.HomeScreenState.viewState) {