mirror of
https://github.com/lwouis/alt-tab-macos.git
synced 2026-05-24 11:20:36 +00:00
fix: broken preferences window toolbar on macos 11 (closes #914)
This commit is contained in:
@@ -29,6 +29,8 @@ class PreferencesWindow: NSWindow, NSToolbarDelegate {
|
||||
private func setupView() {
|
||||
toolbar = NSToolbar(identifier: "1")
|
||||
toolbar!.delegate = self
|
||||
// toolbar breaks with the new default style on macOS 11; we force the classic style (see #914)
|
||||
if #available(OSX 11, *) { toolbarStyle = .expanded }
|
||||
toolbar!.displayMode = .iconAndLabel
|
||||
toolbar!.showsBaselineSeparator = true
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user