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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user