fix: improve perf by only refreshing shown thumbnails (closes #393)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-07-03 14:04:59 +09:00
1 parent 1097aa22c9
commit 3c453f91ed
1 file changed
+2 -3
+2 -3
View File
@@ -84,9 +84,8 @@ class Windows {
}
static func refreshAllThumbnails() {
list.forEachAsync { window in
window.refreshThumbnail()
}
list.filter { $0.shouldShowTheUser }
.forEachAsync { window in window.refreshThumbnail() }
}
static func refreshWhichWindowsToShowTheUser(_ screen: NSScreen) {