Merge pull request #45 from Mandroide/fix-dict

Fix mapping of display names to real names
pull/46/head
Thomas Bouve 2021-05-20 21:25:28 +02:00 zatwierdzone przez GitHub
commit c7cbfe6f4f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -210,9 +210,11 @@ class FileChooser(VBox, ValueWidget):
}
# Dict to map display names to real names
self._map_disp_to_name = dict(
reversed(item) for item in self._map_name_to_disp.items()
)
self._map_disp_to_name = {
disp_name: real_name
for real_name, disp_name in
self._map_name_to_disp.items()
}
# Set _dircontent form value to display names
self._dircontent.options = dircontent_display_names