1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

dash: allow hiding all tabs

port 1.5
This commit is contained in:
bbedward
2026-07-13 16:11:15 -04:00
parent e3034e4e94
commit 7535b70fa6
9 changed files with 85 additions and 101 deletions
+1 -5
View File
@@ -619,11 +619,7 @@ Singleton {
}
function setDashTabEnabled(id, on) {
const current = getDashTabs();
const visibleContentIds = visibleDashTabIds().filter(tabId => tabId !== "settings");
if (!on && visibleContentIds.indexOf(id) >= 0 && visibleContentIds.length <= 1)
return;
dashTabs = current.map(t => t.id === id ? {
dashTabs = getDashTabs().map(t => t.id === id ? {
"id": t.id,
"enabled": on
} : t);