From 41156f66705cde1bdaa96f0aacba1cb167c78e24 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Sat, 5 Sep 2020 15:43:20 -0400 Subject: [PATCH] Add setter for hideUnreadCount in AppDefaults --- Mac/AppDefaults.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Mac/AppDefaults.swift b/Mac/AppDefaults.swift index 278a53525..caed0f08c 100644 --- a/Mac/AppDefaults.swift +++ b/Mac/AppDefaults.swift @@ -194,7 +194,12 @@ final class AppDefaults { } var hideDockUnreadCount: Bool { - return AppDefaults.bool(for: Key.hideDockUnreadCount) + get { + return AppDefaults.bool(for: Key.hideDockUnreadCount) + } + set { + AppDefaults.setBool(for: Key.hideDockUnreadCount, newValue) + } } #if !MAC_APP_STORE