1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 04:42:05 -04:00

launcher: implement memory for selected tab

fixes #1806
This commit is contained in:
bbedward
2026-02-23 10:19:11 -05:00
parent de54ef871d
commit 9f17ced6de
5 changed files with 210 additions and 164 deletions

View File

@@ -61,7 +61,7 @@ DankPopout {
return;
const query = _pendingQuery;
const mode = _pendingMode || "apps";
const mode = _pendingMode || SessionData.appDrawerLastMode || "apps";
_pendingMode = "";
_pendingQuery = "";
@@ -83,6 +83,15 @@ DankPopout {
lc.actionPanel?.hide();
}
Connections {
target: contentLoader.item?.launcherContent?.controller ?? null
function onModeChanged(mode) {
if (contentLoader.item.launcherContent.controller.autoSwitchedToFiles)
return;
SessionData.setAppDrawerLastMode(mode);
}
}
content: Component {
Rectangle {
id: contentContainer