Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: e39dba6b by wurstsalat at 2023-01-13T13:48:30+01:00 fix: AvatarChooser: Fix file filter for Windows
This was introduced in 16cd4ebdb69903024d54a46ee9e648e835875fdc but doesn't work on Windows
- - - - -
1 changed file:
- gajim/gtk/filechoosers.py
Changes:
===================================== gajim/gtk/filechoosers.py ===================================== @@ -112,7 +112,13 @@ class BaseAvatarChooserDialog:
_title = _('Choose Avatar…') _preview_size = (100, 100) - _filters = [Filter(_('Images'), ['image/*'], True)] + + if _require_native(): + _filters = [Filter(_('PNG files'), '*.png', True), + Filter(_('JPEG files'), '*.jp*g', False), + Filter(_('SVG files'), '*.svg', False)] + else: + _filters = [Filter(_('Images'), ['image/*'], True)]
class NativeFileChooserDialog(Gtk.FileChooserNative, BaseFileChooser):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e39dba6ba7bc73c391b1d1ddf5e803fb6...