Philipp Hörist pushed to branch master at gajim / gajim
Commits: 384bed1e by lovetox at 2021-05-03T22:31:10+02:00 AdHoc: There is always a default action
- - - - - 5685a7c7 by lovetox at 2021-05-03T23:00:36+02:00 AdHoc: Don’t add cancel action
nbxmpp provides it already
- - - - -
1 changed file:
- gajim/gtk/adhoc.py
Changes:
===================================== gajim/gtk/adhoc.py ===================================== @@ -297,12 +297,9 @@ def _on_is_valid(self, _widget, is_valid): def get_visible_buttons(self): actions = list(map(lambda action: action.value, self._last_stage_data.actions)) - actions.append('cancel') return actions
def get_default_button(self): - if self._last_stage_data.default is None: - return None return self._last_stage_data.default.value
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/3d87009dd904a3b5e731e41f7a996f76...