fix: sometimes windows titles use the wrong font

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-05-26 02:29:25 +09:00
1 parent 3ffe23079f
commit fa1095e83c
1 file changed
+2
+2
View File
@@ -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)