Drop < 2.2.0 key after migration (#353)

Otherwise, iCloud is being constantly reinforced to true.
This commit is contained in:
Davide De Rosa 2023-09-10 00:50:12 +02:00 committed by GitHub
parent 791b6be7d5
commit 33d9e05907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public final class DefaultUpgradeManagerStrategy: UpgradeManagerStrategy {
if isUpgradeFromBefore_2_2_0 != nil {
pp_log.debug("Upgrading from < 2.2.0, iCloud syncing defaults to enabled")
store.setValue(true, forLocation: AppPreference.shouldEnableCloudSyncing)
store.removeValue(forLocation: UpgradeManager.StoreKey.existingKeyBefore_2_2_0)
}
guard let lastVersion else {