1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

Center add widget in cc

This commit is contained in:
bbedward
2025-10-02 13:45:52 -04:00
parent 2428b22171
commit 8c4aba5479
2 changed files with 5 additions and 1 deletions

View File

@@ -171,6 +171,7 @@ DankPopout {
EditControls {
width: parent.width
visible: editMode
popoutContent: controlContent
availableWidgets: {
const existingIds = (SettingsData.controlCenterWidgets || []).map(w => w.id)
return widgetModel.baseWidgetDefinitions.filter(w => w.allowMultiple || !existingIds.includes(w.id))