fix: bring back the window delay that regressed with v2

This commit is contained in:
louis.pontoise authored and lwouis committed 2020-03-10 14:00:37 +09:00
1 parent fdddb0f8ed
commit bb95e55e02
1 file changed
+4 -2
+4 -2
View File
@@ -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)