fix: switcher might show empty on rare occasions (closes #5432)

This commit is contained in:
lwouis committed 2026-03-20 21:52:22 +01:00
1 parent 545d81d872
commit 6105bb30ad
1 file changed
+2 -1
+2 -1
View File
@@ -307,10 +307,11 @@ class TilesView {
}
static func updateItemsAndLayout(_ preservedScrollOrigin: CGPoint?) {
let widthMax = TilesPanel.maxThumbnailsWidth().rounded()
var widthMax = TilesPanel.maxThumbnailsWidth().rounded()
if Preferences.appearanceSize == .auto {
resolveAutoSize(widthMax)
Self.updateCachedSizes()
widthMax = TilesPanel.maxThumbnailsWidth().rounded()
}
if let (maxX, maxY, labelHeight, rowSignature) = layoutTileViews(widthMax) {
layoutParentViews(maxX, widthMax, maxY, labelHeight)