1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 21:02:06 -04:00

dankbar: prevent double widget instances for horiz/vertical

This commit is contained in:
bbedward
2025-10-23 09:30:04 -04:00
parent b2e5565110
commit 85c00a9c4e
5 changed files with 35 additions and 8 deletions

View File

@@ -18,7 +18,10 @@ Loader {
asynchronous: false
active: getWidgetVisible(widgetId, DgopService.dgopAvailable) &&
readonly property bool orientationMatches: (axis?.isVertical ?? false) === isInColumn
active: orientationMatches &&
getWidgetVisible(widgetId, DgopService.dgopAvailable) &&
(widgetId !== "music" || MprisController.activePlayer !== null)
sourceComponent: getWidgetComponent(widgetId, components)
opacity: getWidgetEnabled(widgetData?.enabled) ? 1 : 0