From 25ee9705626c5b4bda0c28df5666f564b7011440 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 15 Feb 2021 17:49:28 -0600 Subject: [PATCH] Remove async call since the Big Sur bug that it was working around appears to be fixed. Fixes #2791 --- Mac/MainWindow/MainWindowController.swift | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Mac/MainWindow/MainWindowController.swift b/Mac/MainWindow/MainWindowController.swift index 0c911b99f..bdacce4db 100644 --- a/Mac/MainWindow/MainWindowController.swift +++ b/Mac/MainWindow/MainWindowController.swift @@ -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 - } + 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