From b4bc0b006a8c8bfed9fce1be9a33ce860b691a55 Mon Sep 17 00:00:00 2001 From: lwouis Date: Fri, 13 Jun 2025 11:27:26 +0200 Subject: [PATCH] fix: icons on thumbnails could sometimes be incorrect example use-case: show a Finder window, and middle-click it. The next thumbnail under the mouse will not show its purple quit icon --- src/ui/main-window/ThumbnailView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/main-window/ThumbnailView.swift b/src/ui/main-window/ThumbnailView.swift index 8a322e31..b7d0d9e3 100644 --- a/src/ui/main-window/ThumbnailView.swift +++ b/src/ui/main-window/ThumbnailView.swift @@ -132,7 +132,7 @@ class ThumbnailView: FlippedView { func showOrHideWindowControls(_ shouldShowWindowControls: Bool) { let shouldShow = shouldShowWindowControls && !Preferences.hideColoredCircles && !Appearance.hideThumbnails - if Preferences.appearanceStyle == .thumbnails, isShowingWindowControls != shouldShow { + if Preferences.appearanceStyle == .thumbnails { isShowingWindowControls = shouldShow for icon in windowControlIcons { icon.isHidden = !shouldShow