Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c647828e by lovetox at 2020-07-02T23:48:52+02:00
Determine correctly if block/unblock menuitem is shown
- - - - -
1 changed file:
- gajim/gui_menu_builder.py
Changes:
=====================================
gajim/gui_menu_builder.py
=====================================
@@ -397,7 +397,7 @@ control=None, gc_contact=None, is_anonymous=True):
if helpers.jid_is_blocked(account, jid):
block_menuitem.set_no_show_all(True)
block_menuitem.hide()
- if transport != 'jabber':
+ if transport not in ('jabber', None):
unblock_menuitem.set_no_show_all(True)
unblock_menuitem.hide()
unignore_menuitem.set_no_show_all(False)
@@ -409,7 +409,7 @@ control=None, gc_contact=None, is_anonymous=True):
else:
unblock_menuitem.set_no_show_all(True)
unblock_menuitem.hide()
- if transport != 'jabber':
+ if transport not in ('jabber', None):
block_menuitem.set_no_show_all(True)
block_menuitem.hide()
ignore_menuitem.set_no_show_all(False)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c647828e80c63c14e8e89335c9da8757934959ff
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c647828e80c63c14e8e89335c9da8757934959ff
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits