mirror of
https://github.com/SeedSigner/seedsigner.git
synced 2026-10-05 15:08:25 +00:00
Adding PR 331 into 0.6.0 release branch
Merge branch 'dev' into 0.6.0
This commit is contained in:
@@ -156,8 +156,11 @@ class Settings(Singleton):
|
|||||||
raise Exception(f"Unsupported SettingsEntry.type: {settings_entry.type}")
|
raise Exception(f"Unsupported SettingsEntry.type: {settings_entry.type}")
|
||||||
|
|
||||||
display_names = []
|
display_names = []
|
||||||
for value in self._data[attr_name]:
|
# Iterate through the selection_options list in order to preserve intended sort
|
||||||
display_names.append(settings_entry.get_selection_option_display_name_by_value(value))
|
# order when adding which options are selected.
|
||||||
|
for value, display_name in settings_entry.selection_options:
|
||||||
|
if value in self._data[attr_name]:
|
||||||
|
display_names.append(display_name)
|
||||||
return display_names
|
return display_names
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user