Skip to content

Commit d377b3d

Browse files
committed
fix: switcher could become broken after changing appearance
closes #5061
1 parent 850fe28 commit d377b3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/main-window/ThumbnailsView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import Cocoa
33
class ThumbnailsView {
44
var scrollView: ScrollView!
55
var contentView: EffectView!
6-
static var recycledViews = [ThumbnailView]()
76
var rows = [[ThumbnailView]]()
7+
static var recycledViews = [ThumbnailView]()
88
static var thumbnailsWidth = CGFloat(0.0)
99
static var thumbnailsHeight = CGFloat(0.0)
1010

@@ -26,6 +26,7 @@ class ThumbnailsView {
2626
NSScreen.updatePreferred()
2727
Appearance.update()
2828
updateBackgroundView()
29+
App.app.thumbnailsPanel.contentView = contentView
2930
for i in 0..<ThumbnailsView.recycledViews.count {
3031
ThumbnailsView.recycledViews[i] = ThumbnailView()
3132
}

0 commit comments

Comments
 (0)