fix: rare crash if shortcut is pressed early during launch

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-06-16 13:30:10 +09:00
1 parent bb8a5ceaa9
commit 265c7a6c34
1 file changed
+1 -1
+1 -1
View File
@@ -45,8 +45,8 @@ class App: NSApplication, NSApplicationDelegate {
thumbnailsPanel = ThumbnailsPanel()
Spaces.initialDiscovery()
Applications.initialDiscovery()
KeyboardEvents.observe()
loadPreferencesWindow()
KeyboardEvents.observe()
// TODO: undeterministic; events in the queue may still be processing; good enough for now
DispatchQueue.main.async { () -> () in Windows.sortByLevel() }
preloadWindows()