diff --git a/Catch.xcodeproj/project.pbxproj b/Catch.xcodeproj/project.pbxproj index b688c56..f1ceedf 100644 --- a/Catch.xcodeproj/project.pbxproj +++ b/Catch.xcodeproj/project.pbxproj @@ -723,7 +723,7 @@ CODE_SIGN_IDENTITY = ""; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 786; + CURRENT_PROJECT_VERSION = 791; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; FRAMEWORK_SEARCH_PATHS = ( @@ -788,7 +788,7 @@ CODE_SIGN_IDENTITY = "Mac Developer"; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 786; + CURRENT_PROJECT_VERSION = 791; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; diff --git a/Sources/App/FeedChecker.swift b/Sources/App/FeedChecker.swift index 70dfa30..838e712 100644 --- a/Sources/App/FeedChecker.swift +++ b/Sources/App/FeedChecker.swift @@ -141,6 +141,9 @@ final class FeedChecker { os_log("Feed Helper error (checking feed): %{public}@", log: .main, type: .error, error.localizedDescription) self?.lastCheckStatus = .failed(Date(), error) } + + // Synchronize defaults here. If the app dies uncleanly, no data loss. + Defaults.shared.save() } ) }