fix: avoid text flickering on main ui (closes #197)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-04-08 19:28:53 +09:00
1 parent 584b3cd397
commit 4eb9db049b
1 file changed
+2
+2
View File
@@ -42,6 +42,8 @@ class ThumbnailView: NSStackView {
label.string = element.title
// workaround: setting string on NSTextView change the font (most likely a Cocoa bug)
label.font = Preferences.font
// force a display to avoid flickering; see https://github.com/lwouis/alt-tab-macos/issues/197
label.display()
}
assignIfDifferent(&hiddenIcon.isHidden, !window_!.isHidden)
assignIfDifferent(&minimizedIcon.isHidden, !window_!.isMinimized)