From fa1095e83c5a3018aaad717d37015aa00b9e5e86 Mon Sep 17 00:00:00 2001 From: Louis Pontoise Date: Sun, 24 May 2020 01:54:26 +0900 Subject: [PATCH] fix: sometimes windows titles use the wrong font --- src/ui/main-window/ThumbnailView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/main-window/ThumbnailView.swift b/src/ui/main-window/ThumbnailView.swift index bfb31087..067b0069 100644 --- a/src/ui/main-window/ThumbnailView.swift +++ b/src/ui/main-window/ThumbnailView.swift @@ -77,6 +77,8 @@ class ThumbnailView: NSStackView { let labelChanged = label.string != element.title if labelChanged { label.string = element.title + // workaround: setting string on NSTextView changes the font (most likely a Cocoa bug) + label.font = Preferences.font } assignIfDifferent(&hiddenIcon.isHidden, !element.isHidden) assignIfDifferent(&fullscreenIcon.isHidden, !element.isFullscreen)