From c2d0dac62c22062153c19f96b71b79b4db70b229 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 19 Nov 2020 11:16:07 -0600 Subject: [PATCH] Hide the Timeline sort and filter on Big Sur. Fixes #2582 --- Mac/Base.lproj/MainWindow.storyboard | 129 +++++++++--------- .../TimelineContainerViewController.swift | 5 + 2 files changed, 71 insertions(+), 63 deletions(-) diff --git a/Mac/Base.lproj/MainWindow.storyboard b/Mac/Base.lproj/MainWindow.storyboard index 55fc78c05..86aad056d 100644 --- a/Mac/Base.lproj/MainWindow.storyboard +++ b/Mac/Base.lproj/MainWindow.storyboard @@ -1,8 +1,8 @@ - + - + @@ -298,24 +298,24 @@ - - + + - + - + - + - + @@ -328,7 +328,7 @@ - + @@ -346,7 +346,7 @@ - + @@ -466,55 +466,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -522,17 +529,12 @@ - - - - - @@ -543,6 +545,7 @@ + @@ -609,9 +612,9 @@ - - - + + + diff --git a/Mac/MainWindow/Timeline/TimelineContainerViewController.swift b/Mac/MainWindow/Timeline/TimelineContainerViewController.swift index b43b210fd..5814fa80c 100644 --- a/Mac/MainWindow/Timeline/TimelineContainerViewController.swift +++ b/Mac/MainWindow/Timeline/TimelineContainerViewController.swift @@ -26,6 +26,7 @@ final class TimelineContainerViewController: NSViewController { @IBOutlet weak var readFilteredButton: NSButton! @IBOutlet var containerView: TimelineContainerView! + @IBOutlet weak var sortAndFilterViewHeightConstraint: NSLayoutConstraint! var currentTimelineViewController: TimelineViewController? { didSet { @@ -69,6 +70,10 @@ final class TimelineContainerViewController: NSViewController { makeMenuItemTitleLarger(groupByFeedMenuItem) updateViewOptionsPopUpButton() + if #available(macOS 11.0, *) { + sortAndFilterViewHeightConstraint.constant = 0 + } + NotificationCenter.default.addObserver(self, selector: #selector(userDefaultsDidChange(_:)), name: UserDefaults.didChangeNotification, object: nil) }