From 19fb333a6744c0f9f1a7030d18c32603285e3b29 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 6 Jul 2023 19:11:09 -0500 Subject: [PATCH] =?UTF-8?q?Toggles=20Delta=20Sync=20switch=20back=20on=20i?= =?UTF-8?q?f=20user=20cancels=20=E2=80=9CDisable=20Syncing=3F=E2=80=9D=20w?= =?UTF-8?q?arning=20alert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Delta/Settings/Syncing/SyncingServicesViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Delta/Settings/Syncing/SyncingServicesViewController.swift b/Delta/Settings/Syncing/SyncingServicesViewController.swift index e843620..f948b0f 100644 --- a/Delta/Settings/Syncing/SyncingServicesViewController.swift +++ b/Delta/Settings/Syncing/SyncingServicesViewController.swift @@ -57,7 +57,9 @@ private extension SyncingServicesViewController if SyncManager.shared.coordinator?.account != nil { let alertController = UIAlertController(title: NSLocalizedString("Disable Syncing?", comment: ""), message: NSLocalizedString("Enabling syncing again later may result in conflicts that must be resolved manually.", comment: ""), preferredStyle: .alert) - alertController.addAction(.cancel) + alertController.addAction(UIAlertAction(title: UIAlertAction.cancel.title, style: UIAlertAction.cancel.style) { (action) in + sender.setOn(true, animated: true) + }) alertController.addAction(UIAlertAction(title: NSLocalizedString("Disable", comment: ""), style: .default) { (action) in self.changeService(to: nil) })