fix: rare crash when started at login
This commit is contained in:
1 parent
7eab1f8962
commit
80945c8af3
1 file changed
+1
-1
+1
-1
@@ -165,7 +165,7 @@ class App: AppCenterApplication, NSApplicationDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@objc func showPreferencesPanel() {
|
@objc func showPreferencesPanel() {
|
||||||
if let preferencesWindow = preferencesWindowController.window {
|
if let preferencesWindow = preferencesWindowController?.window {
|
||||||
preferencesWindowController.show()
|
preferencesWindowController.show()
|
||||||
Screen.repositionPanel(preferencesWindow, Screen.preferred(), .appleCentered)
|
Screen.repositionPanel(preferencesWindow, Screen.preferred(), .appleCentered)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user