Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
16cd4ebd by wurstsalat at 2022-12-14T19:44:56+01:00
imprv: BaseAvatarChooserDialog: Allow all image types

Fixes #11328

- - - - -


1 changed file:

- gajim/gtk/filechoosers.py


Changes:

=====================================
gajim/gtk/filechoosers.py
=====================================
@@ -110,15 +110,7 @@ class BaseAvatarChooserDialog:
 
     _title = _('Choose Avatar…')
     _preview_size = (100, 100)
-
-    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/png',
-                                         'image/jpeg',
-                                         'image/svg+xml'], True)]
+    _filters = [Filter(_('Images'), ['image/*'], True)]
 
 
 class NativeFileChooserDialog(Gtk.FileChooserNative, BaseFileChooser):



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/16cd4ebdb69903024d54a46ee9e648e835875fdc

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/16cd4ebdb69903024d54a46ee9e648e835875fdc
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to