mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[view] improvement: always displaying the 'any file filter' (*) as the last option for file chooser components
This commit is contained in:
@@ -5,11 +5,16 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
## [0.9.20]
|
||||
### Improvements
|
||||
- UI:
|
||||
- always displaying the "any file filter" (*) as the last option for file chooser components [#193](https://github.com/vinifmor/bauh/issues/193)
|
||||
|
||||
### Fixes
|
||||
- AppImage
|
||||
- not displaying the filter for any kind of file (*) when updating imported AppImages [#193](https://github.com/vinifmor/bauh/issues/193)
|
||||
|
||||
|
||||
|
||||
## [0.9.19] 2021-08-23
|
||||
### Improvements
|
||||
- AppImage
|
||||
|
||||
@@ -858,7 +858,13 @@ class FormQt(QGroupBox):
|
||||
|
||||
def open_chooser(e):
|
||||
if c.allowed_extensions:
|
||||
exts = ';;'.join({'*.{}'.format(e) for e in c.allowed_extensions})
|
||||
sorted_exts = [e for e in c.allowed_extensions if e != '*']
|
||||
sorted_exts.sort()
|
||||
|
||||
if '*' in c.allowed_extensions:
|
||||
sorted_exts.append('*')
|
||||
|
||||
exts = ';;'.join({f'*.{e}' for e in sorted_exts})
|
||||
else:
|
||||
exts = '{} (*);;'.format(self.i18n['all_files'].capitalize())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user