mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 17:24:04 +01:00
Remove async call since the Big Sur bug that it was working around appears to be fixed. Fixes #2791
This commit is contained in:
parent
5ef7ef057e
commit
ca294c7528
@ -62,14 +62,12 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
|||||||
sharingServicePickerDelegate = SharingServicePickerDelegate(self.window)
|
sharingServicePickerDelegate = SharingServicePickerDelegate(self.window)
|
||||||
|
|
||||||
if #available(macOS 11.0, *) {
|
if #available(macOS 11.0, *) {
|
||||||
DispatchQueue.main.async {
|
let toolbar = NSToolbar(identifier: "MainWindowToolbar")
|
||||||
let toolbar = NSToolbar(identifier: "MainWindowToolbar")
|
toolbar.allowsUserCustomization = true
|
||||||
toolbar.allowsUserCustomization = true
|
toolbar.autosavesConfiguration = true
|
||||||
toolbar.autosavesConfiguration = true
|
toolbar.displayMode = .iconOnly
|
||||||
toolbar.displayMode = .iconOnly
|
toolbar.delegate = self
|
||||||
toolbar.delegate = self
|
self.window?.toolbar = toolbar
|
||||||
self.window?.toolbar = toolbar
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if !AppDefaults.shared.showTitleOnMainWindow {
|
if !AppDefaults.shared.showTitleOnMainWindow {
|
||||||
window?.titleVisibility = .hidden
|
window?.titleVisibility = .hidden
|
||||||
|
Loading…
Reference in New Issue
Block a user