Skip to content

Commit

Permalink
fix: bring back the window delay that regressed with v2
Browse files Browse the repository at this point in the history
  • Loading branch information
louis.pontoise authored and lwouis committed Mar 10, 2020
1 parent fdddb0f commit bb95e55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions alt-tab-macos/ui/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ class App: NSApplication, NSApplicationDelegate, NSWindowDelegate {
Windows.refreshAllThumbnails()
Windows.focusedWindowIndex = 0
Windows.cycleFocusedWindowIndex(step)
refreshOpenUi()
if uiWorkShouldBeDone { thumbnailsPanel?.show() }
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Preferences.windowDisplayDelay!, execute: {
self.refreshOpenUi()
if self.uiWorkShouldBeDone { self.thumbnailsPanel?.show() }
})
} else {
debugPrint("showUiOrCycleSelection: !isFirstSummon")
cycleSelection(step)
Expand Down

0 comments on commit bb95e55

Please sign in to comment.