Merge pull request #10209 from AUTOMATIC1111/quicksettings-migration

1.1.1 quicksettings list migration
This commit is contained in:
AUTOMATIC1111 2023-05-09 22:29:08 +03:00 committed by GitHub
commit ccbb361845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -549,6 +549,10 @@ class Options:
with open(filename, "r", encoding="utf8") as file:
self.data = json.load(file)
# 1.1.1 quicksettings list migration
if self.data.get('quicksettings') is not None and self.data.get('quicksettings_list') is None:
self.data['quicksettings_list'] = [i.strip() for i in self.data.get('quicksettings').split(',')]
bad_settings = 0
for k, v in self.data.items():
info = self.data_labels.get(k, None)