perf: reduce launcher presentation latency
This commit is contained in:
@@ -98,7 +98,13 @@ private final class ApplicationDelegate: NSObject, NSApplicationDelegate {
|
||||
case .command(let command): self?.launcher.toggle(command: command)
|
||||
}
|
||||
}
|
||||
private lazy var settings = SettingsWindowController(shortcuts: shortcuts)
|
||||
private lazy var settings = makeSettings()
|
||||
|
||||
private func makeSettings() -> SettingsWindowController {
|
||||
let controller = SettingsWindowController(shortcuts: shortcuts)
|
||||
controller.retryUninstallRecovery = { [uninstaller] in await uninstaller.recover() }
|
||||
return controller
|
||||
}
|
||||
private var startupShortcutError: String?
|
||||
private var startupRecoveryMessage: String?
|
||||
|
||||
@@ -117,7 +123,6 @@ private final class ApplicationDelegate: NSObject, NSApplicationDelegate {
|
||||
quitItem.target = NSApplication.shared
|
||||
launcher.window?.contentView?.menu = menu
|
||||
let loginLaunch = isLoginLaunch
|
||||
settings.retryUninstallRecovery = { [uninstaller] in await uninstaller.recover() }
|
||||
Task {
|
||||
let report = await uninstaller.recover()
|
||||
guard !report.messages.isEmpty else { return }
|
||||
|
||||
@@ -58,6 +58,7 @@ final class LauncherWindowController: NSWindowController, NSWindowDelegate, NSSe
|
||||
defer: false
|
||||
)
|
||||
window.title = "Conjure"
|
||||
window.animationBehavior = .none
|
||||
window.appearance = NSAppearance(named: .darkAqua)
|
||||
window.backgroundColor = .clear
|
||||
window.isOpaque = false
|
||||
|
||||
Reference in New Issue
Block a user