🔧 Only try to migrate profiles once

This commit is contained in:
Simon Schneegans
2023-02-10 06:02:23 +01:00
parent f2cf78971d
commit 543cf7de09
+3 -1
View File
@@ -88,7 +88,9 @@ class Extension {
const lastVersion = this._settings.get_int('last-extension-version');
if (lastVersion < Me.metadata.version) {
if (lastVersion <= 26) {
migrate.fromVersion26().then(() => {
// If the profile migration fails for some reason, the callback will create a
// default profile instead.
migrate.fromVersion26().finally(() => {
this._loadProfiles();
this._settings.set_int('last-extension-version', Me.metadata.version);
});