bugfix for migration
This commit is contained in:
parent
a3b31403ed
commit
7981c3b9ff
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue