From cbaad4bdeba9afbb237e4b952fb0295efc79d8ec Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 3 Sep 2019 22:17:31 -0700 Subject: [PATCH] Add checkbox to Preferences > General for turning off the unread count in the Dock. --- Mac/AppDelegate.swift | 1 + Mac/Base.lproj/Preferences.storyboard | 63 +++++++++++++++++++++------ 2 files changed, 50 insertions(+), 14 deletions(-) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index 00933d244..5ccd8cae9 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -257,6 +257,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, @objc func userDefaultsDidChange(_ note: Notification) { updateSortMenuItems() refreshTimer?.update() + updateDockBadge() } // MARK: Main Window diff --git a/Mac/Base.lproj/Preferences.storyboard b/Mac/Base.lproj/Preferences.storyboard index 725aafbbe..1e66a24c9 100644 --- a/Mac/Base.lproj/Preferences.storyboard +++ b/Mac/Base.lproj/Preferences.storyboard @@ -31,14 +31,14 @@ - + - + - + @@ -46,7 +46,7 @@ - + @@ -81,7 +81,7 @@ - + @@ -89,7 +89,7 @@ - + @@ -104,7 +104,7 @@ - + @@ -112,7 +112,7 @@ + + + + + + + + + @@ -138,19 +167,25 @@ + - - + + + - - + + + + + + @@ -160,7 +195,7 @@ - + @@ -170,7 +205,7 @@ - +