chore: migrations would play when debugging local builds

This commit is contained in:
lwouis committed 2024-12-30 23:43:50 +01:00
1 parent be5eb26385
commit e3fafbc6ff
1 file changed
+1 -1
+1 -1
View File
@@ -194,7 +194,7 @@ class Preferences {
static func migratePreferences() {
let preferencesKey = "preferencesVersion"
if let versionInPlist = UserDefaults.standard.string(forKey: preferencesKey) {
if versionInPlist.compare(App.version, options: .numeric) != .orderedDescending {
if versionInPlist != "#VERSION#" && versionInPlist.compare(App.version, options: .numeric) != .orderedDescending {
updateToNewPreferences(versionInPlist)
}
}