From 6105bb30ad868c28ff946f8f4606b4231eb986eb Mon Sep 17 00:00:00 2001 From: lwouis Date: Wed, 18 Mar 2026 22:46:54 +0100 Subject: [PATCH] fix: switcher might show empty on rare occasions (closes #5432) --- src/ui/main-window/TilesView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/main-window/TilesView.swift b/src/ui/main-window/TilesView.swift index 3ac03ffb..7a65dc11 100644 --- a/src/ui/main-window/TilesView.swift +++ b/src/ui/main-window/TilesView.swift @@ -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)