fix: rare crash when started at login

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-08-07 13:14:26 +09:00
1 parent 7eab1f8962
commit 80945c8af3
1 file changed
+1 -1
+1 -1
View File
@@ -165,7 +165,7 @@ class App: AppCenterApplication, NSApplicationDelegate {
}
@objc func showPreferencesPanel() {
if let preferencesWindow = preferencesWindowController.window {
if let preferencesWindow = preferencesWindowController?.window {
preferencesWindowController.show()
Screen.repositionPanel(preferencesWindow, Screen.preferred(), .appleCentered)
}