diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index c6a2b3123..a1a9bb39a 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -135,7 +135,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD func manualRefresh(errorHandler: @escaping (Error) -> ()) { UIApplication.shared.connectedScenes.compactMap( { $0.delegate as? SceneDelegate } ).forEach { - $0.refreshInterface() + $0.cleanUp() } AccountManager.shared.refreshAll(errorHandler: errorHandler) } diff --git a/iOS/KeyboardManager.swift b/iOS/KeyboardManager.swift index d8fef2c2c..3c68dd119 100644 --- a/iOS/KeyboardManager.swift +++ b/iOS/KeyboardManager.swift @@ -144,6 +144,9 @@ private extension KeyboardManager { let markAllAsReadTitle = NSLocalizedString("Mark All as Read", comment: "Mark All as Read") keys.append(KeyboardManager.createKeyCommand(title: markAllAsReadTitle, action: "markAllAsRead:", input: "k", modifiers: [.command])) + let cleanUp = NSLocalizedString("Clean Up", comment: "Clean Up") + keys.append(KeyboardManager.createKeyCommand(title: cleanUp, action: "cleanUp:", input: "h", modifiers: [.command, .shift])) + return keys } diff --git a/iOS/RootSplitViewController.swift b/iOS/RootSplitViewController.swift index 93a6e4629..6f02ab425 100644 --- a/iOS/RootSplitViewController.swift +++ b/iOS/RootSplitViewController.swift @@ -90,6 +90,10 @@ class RootSplitViewController: UISplitViewController { coordinator.showAdd(.folder) } + @objc func cleanUp(_ sender: Any?) { + coordinator.cleanUp() + } + @objc func refresh(_ sender: Any?) { appDelegate.manualRefresh(errorHandler: ErrorHandler.present(self)) } diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 621d5de73..ea7065f76 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -572,7 +572,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider { fetchRequestQueue.cancelAllRequests() } - func refreshInterface() { + func cleanUp() { if isReadFeedsFiltered { rebuildBackingStores() } diff --git a/iOS/SceneDelegate.swift b/iOS/SceneDelegate.swift index 22d82cdde..7fb620f1c 100644 --- a/iOS/SceneDelegate.swift +++ b/iOS/SceneDelegate.swift @@ -84,8 +84,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { coordinator.suspend() } - func refreshInterface() { - coordinator.refreshInterface() + func cleanUp() { + coordinator.cleanUp() } }