Skip to content

Commit

Permalink
fix: sometimes windows titles use the wrong font
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed May 25, 2020
1 parent 3ffe230 commit fa1095e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/main-window/ThumbnailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa1095e

Please sign in to comment.