mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 22:17:48 -04:00
fix(settings): show bar delete button when multiple bars exist (#3943)
port 2.0
(cherry picked from commit 3c89a1554b)
This commit is contained in:
1 parent
6d316539d7
commit
290d04c511
1 file changed
+1
-1
@@ -58,7 +58,7 @@ Column {
|
||||
}
|
||||
|
||||
function canDeleteBar(config) {
|
||||
return config.id !== "default" && (SettingsData.getBarKindConfigs().length > 1 || SettingsData.isIslandBarConfig(config));
|
||||
return config.id !== "default" && SettingsData.edgeBarConfigCount > 1;
|
||||
}
|
||||
|
||||
function deleteBar(barId) {
|
||||
|
||||
Reference in new issue
Block a user