@@ -42,12 +42,6 @@ class App: AppCenterApplication {
4242 fatalError ( " Class only supports programmatic initialization " )
4343 }
4444
45- /// pre-load some windows so they are faster on first display
46- private func preloadWindows( ) {
47- thumbnailsPanel. orderFront ( nil )
48- thumbnailsPanel. orderOut ( nil )
49- }
50-
5145 /// we put application code here which should be executed on init() and Preferences change
5246 func resetPreferencesDependentComponents( ) {
5347 thumbnailsPanel. thumbnailsView. reset ( )
@@ -203,12 +197,7 @@ class App: AppCenterApplication {
203197 }
204198
205199 func refreshOpenUi( _ windowsToScreenshot: [ Window ] , _ source: RefreshCausedBy ) {
206- if !windowsToScreenshot. isEmpty && SystemPermissions . screenRecordingPermission == . granted
207- && !Preferences. onlyShowApplications ( )
208- && ( !Appearance. hideThumbnails || Preferences . previewFocusedWindow) {
209- Windows . refreshThumbnailsAsync ( windowsToScreenshot, source)
210- if source == . refreshOnlyThumbnailsAfterShowUi { return }
211- }
200+ Windows . refreshThumbnailsAsync ( windowsToScreenshot, source)
212201 guard appIsBeingUsed else { return }
213202 if source == . refreshUiAfterExternalEvent {
214203 if !Windows. updatesBeforeShowing ( ) { hideUi ( ) ; return }
@@ -266,7 +255,7 @@ class App: AppCenterApplication {
266255 guard appIsBeingUsed else { return }
267256 thumbnailsPanel. show ( )
268257 KeyRepeatTimer . toggleRepeatingKeyNextWindow ( )
269- refreshOpenUi ( Windows . list, . refreshOnlyThumbnailsAfterShowUi)
258+ Windows . refreshThumbnailsAsync ( Windows . list, . refreshOnlyThumbnailsAfterShowUi)
270259 }
271260
272261 func checkIfShortcutsShouldBeDisabled( _ activeWindow: Window ? , _ activeApp: NSRunningApplication ? ) {
@@ -323,7 +312,6 @@ extension App: NSApplicationDelegate {
323312 MouseEvents . observe ( )
324313 TrackpadEvents . observe ( )
325314 CliEvents . observe ( )
326- self . preloadWindows ( )
327315 Logger . info ( " AltTab finished launching " )
328316 #if DEBUG
329317// self.showPreferencesWindow()
0 commit comments