mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-04 12:38:31 -04:00
fix(dash-tabs): update visibility logic for dash tab elements
Fixes #2822
Port 1.5
(cherry picked from commit f590a2965a)
This commit is contained in:
@@ -617,7 +617,8 @@ Singleton {
|
||||
|
||||
function setDashTabEnabled(id, on) {
|
||||
const current = getDashTabs();
|
||||
if (!on && id !== "settings" && current.filter(t => t.enabled && t.id !== "settings").length <= 1)
|
||||
const visibleContentIds = visibleDashTabIds().filter(tabId => tabId !== "settings");
|
||||
if (!on && visibleContentIds.indexOf(id) >= 0 && visibleContentIds.length <= 1)
|
||||
return;
|
||||
dashTabs = current.map(t => t.id === id ? {
|
||||
"id": t.id,
|
||||
|
||||
Reference in New Issue
Block a user