From b3ca806d0b9df1bcccb0a2d33d8e3ae178a4f6bf Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 23 Jul 2020 11:29:48 -0500 Subject: [PATCH] Stop disabling tab support on Multiplatform macOS. Issue #179 --- Multiplatform/Shared/Sidebar/SidebarModel.swift | 5 ++++- Multiplatform/macOS/AppDelegate.swift | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Multiplatform/Shared/Sidebar/SidebarModel.swift b/Multiplatform/Shared/Sidebar/SidebarModel.swift index 7093dc0d6..2dbf628df 100644 --- a/Multiplatform/Shared/Sidebar/SidebarModel.swift +++ b/Multiplatform/Shared/Sidebar/SidebarModel.swift @@ -176,8 +176,11 @@ private extension SidebarModel { userDidDeleteAccountPublisher, unreadCountDidInitializePublisher, unreadCountDidChangePublisher) - + + let kickStarter = Notification(name: Notification.Name(rawValue: "Kick Starter")) + sidebarRebuildPublishers + .prepend(kickStarter) .debounce(for: .milliseconds(500), scheduler: RunLoop.main) .combineLatest($isReadFiltered, $selectedFeeds) .sink { [weak self] _, readFilter, selectedFeeds in diff --git a/Multiplatform/macOS/AppDelegate.swift b/Multiplatform/macOS/AppDelegate.swift index cd4e7df12..2ba709350 100644 --- a/Multiplatform/macOS/AppDelegate.swift +++ b/Multiplatform/macOS/AppDelegate.swift @@ -69,7 +69,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele #endif override init() { - NSWindow.allowsAutomaticWindowTabbing = false super.init() AccountManager.shared = AccountManager(accountsFolder: Platform.dataSubfolder(forApplication: nil, folderName: "Accounts")!)