fix: never screenshot windows if thumbnails are hidden

This commit is contained in:
Sean Kelly
2023-10-20 10:07:24 +02:00
committed by lwouis
parent 821161363e
commit 5e7f44b5ca
+1 -1
View File
@@ -257,7 +257,7 @@ class App: AppCenterApplication, NSApplicationDelegate {
private func refreshSpecificWindows(_ windowsToUpdate: [Window]?, _ currentScreen: NSScreen) -> ()? {
windowsToUpdate?.forEach { (window: Window) in
guard appIsBeingUsed else { return }
window.refreshThumbnail()
if !Preferences.hideThumbnails { window.refreshThumbnail() }
Windows.refreshIfWindowShouldBeShownToTheUser(window, currentScreen)
window.updatesWindowSpace()
}