bugfix for migration

This commit is contained in:
thelastWallE 2023-02-27 17:51:45 +01:00 committed by GitHub
parent a3b31403ed
commit 7981c3b9ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class KlipperPlugin(
def on_settings_migrate(self, target, current): def on_settings_migrate(self, target, current):
settings = self._settings settings = self._settings
if current is None: if current is None:
migrate_old_settings(settings) migrate_old_settings(self, settings)
if current is not None and current < 3: if current is not None and current < 3:
self.migrate_settings_3(settings) self.migrate_settings_3(settings)
@ -196,6 +196,7 @@ class KlipperPlugin(
def migrate_settings_3(self, settings): def migrate_settings_3(self, settings):
migrate_settings_configuration( migrate_settings_configuration(
self,
settings, settings,
"shortStatus_navbar", "shortStatus_navbar",
"navbar", "navbar",