Philipp Hörist pushed to branch master at gajim / gajim
Commits:
c132a016 by lovetox at 2022-01-14T15:30:36+01:00
Simplify isinstance check
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/file_transfer_jingle.py
Changes:
=====================================
gajim/gtk/conversation/rows/file_transfer_jingle.py
=====================================
@@ -243,8 +243,7 @@ def process_event(self, event: TransferEventT) -> None:
elif isinstance(event, FileHashError):
self._ui.action_stack.set_visible_child_name('hash-error')
self._ui.transfer_action.set_text(_('File Verification Failed'))
- elif (isinstance(event, FileRequestError) or
- isinstance(event, FileSendError)):
+ elif isinstance(event, (FileRequestError, FileSendError)):
self._ui.action_stack.set_visible_child_name('error')
self._ui.transfer_action.set_text(_('File Transfer Cancelled'))
error_text = _('Connection with %s could not be '
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c132a0165a440224da8219c1d994726fb99f6a0b
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c132a0165a440224da8219c1d994726fb99f6a0b
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