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


Commits:
4ba7d178 by wurstsalat at 2022-09-12T09:05:41+02:00
cfix: Features: Show correct status for AV on Windows

- - - - -


1 changed file:

- gajim/gtk/features.py


Changes:

=====================================
gajim/gtk/features.py
=====================================
@@ -87,6 +87,7 @@ def _add_feature(self, feature: Feature) -> None:
         self.feature_listbox.add(item)
 
     def _get_features(self) -> list[Feature]:
+        av_available = app.is_installed('AV') and sys.platform != 'win32'
         notification_sounds_available: bool = (
             app.is_installed('GSOUND') or sys.platform in ('win32', 'darwin'))
         notification_sounds_enabled: bool = app.settings.get('sounds_on')
@@ -105,7 +106,7 @@ def _get_features(self) -> list[Feature]:
                     _('Feature not available under Windows'),
                     None),
             Feature(_('Audio / Video'),
-                    app.is_installed('AV'),
+                    av_available,
                     _('Enables Gajim to provide Audio and Video chats'),
                     _('Requires: gir1.2-farstream-0.2, gir1.2-gstreamer-1.0, '
                       'gstreamer1.0-plugins-base, gstreamer1.0-plugins-ugly, '



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/4ba7d178e4649a910447e8c31e79ed360033c751

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/4ba7d178e4649a910447e8c31e79ed360033c751
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