mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 18:56:14 +00:00
⚡️ Make sure the widget is refreshed in background
This commit is contained in:
1 file changed
+1
@@ -390,6 +390,7 @@ private extension AppDelegate {
|
||||
}
|
||||
await AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log)
|
||||
if !AccountManager.shared.isSuspended {
|
||||
WidgetDataEncoder.shared?.encode()
|
||||
self.suspendApplication()
|
||||
Self.logger.info("Background refresh completed.")
|
||||
task.setTaskCompleted(success: true)
|
||||
|
||||
Reference in new issue
Block a user