[view] fix: not properly sorting file extensions for the FileChooser component

This commit is contained in:
Vinicius Moreira
2021-11-03 15:37:41 -03:00
parent 1b58963fc6
commit b2f8266bce

View File

@@ -864,7 +864,7 @@ class FormQt(QGroupBox):
if '*' in c.allowed_extensions:
sorted_exts.append('*')
exts = ';;'.join({f'*.{e}' for e in sorted_exts})
exts = ';;'.join((f'*.{e}' for e in sorted_exts))
else:
exts = '{} (*);;'.format(self.i18n['all_files'].capitalize())