From 6851730dbc327635d87e9c658fcec6b964522c46 Mon Sep 17 00:00:00 2001 From: CMK Date: Thu, 16 Sep 2021 17:57:02 +0800 Subject: [PATCH] chore: add wizard reset debug action --- .../HomeTimelineViewController+DebugAction.swift | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Mastodon/Scene/HomeTimeline/HomeTimelineViewController+DebugAction.swift b/Mastodon/Scene/HomeTimeline/HomeTimelineViewController+DebugAction.swift index b0fddb445..fbc221c7a 100644 --- a/Mastodon/Scene/HomeTimeline/HomeTimelineViewController+DebugAction.swift +++ b/Mastodon/Scene/HomeTimeline/HomeTimelineViewController+DebugAction.swift @@ -149,7 +149,7 @@ extension HomeTimelineViewController { } }, UIAction( - title: "notification badge +1", + title: "Notification badge +1", image: UIImage(systemName: "1.circle.fill"), identifier: nil, attributes: [], @@ -160,7 +160,17 @@ extension HomeTimelineViewController { UserDefaults.shared.increaseNotificationCount(accessToken: accessToken) self.context.notificationService.applicationIconBadgeNeedsUpdate.send() } - ) + ), + UIAction( + title: "Enable account switcher wizard", + image: UIImage(systemName: "square.stack.3d.down.forward.fill"), + identifier: nil, + attributes: [], + state: .off, + handler: { _ in + UserDefaults.shared.didShowMultipleAccountSwitchWizard = false + } + ), ] ) }