Center prefs window after switching to the proper view.
This commit is contained in:
parent
cc7321e936
commit
4bead42b5a
|
@ -49,9 +49,10 @@ class PreferencesWindowController : NSWindowController, NSToolbarDelegate {
|
|||
|
||||
window?.showsToolbarButton = false
|
||||
window?.toolbar = toolbar
|
||||
window?.center()
|
||||
|
||||
switchToViewAtIndex(0)
|
||||
|
||||
window?.center()
|
||||
}
|
||||
|
||||
// MARK: Actions
|
||||
|
|
Loading…
Reference in New Issue