Drop < 2.2.0 key after migration (#353)
Otherwise, iCloud is being constantly reinforced to true.
This commit is contained in:
parent
791b6be7d5
commit
33d9e05907
|
@ -37,6 +37,7 @@ public final class DefaultUpgradeManagerStrategy: UpgradeManagerStrategy {
|
||||||
if isUpgradeFromBefore_2_2_0 != nil {
|
if isUpgradeFromBefore_2_2_0 != nil {
|
||||||
pp_log.debug("Upgrading from < 2.2.0, iCloud syncing defaults to enabled")
|
pp_log.debug("Upgrading from < 2.2.0, iCloud syncing defaults to enabled")
|
||||||
store.setValue(true, forLocation: AppPreference.shouldEnableCloudSyncing)
|
store.setValue(true, forLocation: AppPreference.shouldEnableCloudSyncing)
|
||||||
|
store.removeValue(forLocation: UpgradeManager.StoreKey.existingKeyBefore_2_2_0)
|
||||||
}
|
}
|
||||||
|
|
||||||
guard let lastVersion else {
|
guard let lastVersion else {
|
||||||
|
|
Loading…
Reference in New Issue