fix some toolbars and layout on macOS 11 sdk.

This commit is contained in:
Damiano Galassi committed 2020-07-01 19:49:40 +02:00
1 parent 96cd24ec71
commit ce4b084324
9 files changed
+51 -29

No files matched your search

+6
View File
@@ -16,6 +16,12 @@ class PrefsWindowController: NSWindowController, NSWindowDelegate {
override func windowDidLoad() {
super.windowDidLoad()
#if __MAC_10_16
if #available(macOS 10.16, *) {
window?.toolbarStyle = .preference
}
#endif
window?.toolbar?.allowsUserCustomization = false
window?.toolbar?.selectedItemIdentifier = general