Remove async call since the Big Sur bug that it was working around appears to be fixed. Fixes #2791

This commit is contained in:
Maurice Parker 2021-02-15 17:49:28 -06:00
parent 5ef7ef057e
commit ca294c7528

View File

@ -62,14 +62,12 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
sharingServicePickerDelegate = SharingServicePickerDelegate(self.window)
if #available(macOS 11.0, *) {
DispatchQueue.main.async {
let toolbar = NSToolbar(identifier: "MainWindowToolbar")
toolbar.allowsUserCustomization = true
toolbar.autosavesConfiguration = true
toolbar.displayMode = .iconOnly
toolbar.delegate = self
self.window?.toolbar = toolbar
}
} else {
if !AppDefaults.shared.showTitleOnMainWindow {
window?.titleVisibility = .hidden