mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
systemtray: fix visibility when all items hidden
This commit is contained in:
@@ -33,8 +33,9 @@ Item {
|
||||
}
|
||||
readonly property var mainBarItems: allTrayItems.filter(item => !SessionData.isHiddenTrayId(item?.id || ""))
|
||||
readonly property int calculatedSize: {
|
||||
if (allTrayItems.length === 0) return 0
|
||||
const itemCount = mainBarItems.length + 1
|
||||
return itemCount > 0 ? itemCount * 24 + horizontalPadding * 2 : 0
|
||||
return itemCount * 24 + horizontalPadding * 2
|
||||
}
|
||||
readonly property real visualWidth: isVertical ? widgetThickness : calculatedSize
|
||||
readonly property real visualHeight: isVertical ? calculatedSize : widgetThickness
|
||||
|
||||
Reference in New Issue
Block a user