styleMask: [.titled, .closable, .resizable, .fullSizeContentView],
backing: .buffered,
defer: false)
- super.center()
+ self.center()
self.isReleasedWhenClosed = false
- super.setFrameAutosaveName("Preferences Window")
- super.contentView = NSHostingView(rootView: PreferencesScreen())
- super.makeKeyAndOrderFront(nil)
+ self.setFrameAutosaveName("Preferences Window")
+ self.contentView = NSHostingView(rootView: PreferencesScreen())
+ self.makeKeyAndOrderFront(nil)
+ self.orderFrontRegardless()
}
}