Philipp Hörist pushed to branch message-selection at gajim / gajim
Commits:
5baa80a2 by Philipp Hörist at 2022-10-30T16:45:24+01:00
refactor: Enable message input actions always
- - - - -
7d7a3296 by Philipp Hörist at 2022-10-30T16:46:06+01:00
fix: Enable emoji chooser action
This fixes the emoji chooser shortcut
- - - - -
2 changed files:
- gajim/gtk/chat_stack.py
- gajim/gtk/const.py
Changes:
=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -494,11 +494,6 @@ def _update_base_actions(self, contact: ChatContactT) ->
None:
app.window.get_action('show-contact-info').set_enabled(online)
app.window.get_action('correct-message').set_enabled(online)
- app.window.get_action('input-bold').set_enabled(True)
- app.window.get_action('input-italic').set_enabled(True)
- app.window.get_action('input-strike').set_enabled(True)
- app.window.get_action('input-clear').set_enabled(True)
-
def _update_chat_actions(self, contact: BareContact) -> None:
account = contact.account
online = app.account_is_connected(account)
=====================================
gajim/gtk/const.py
=====================================
@@ -187,11 +187,11 @@ def __str__(self):
MAIN_WIN_ACTIONS = [
# action name, variant type, enabled
- ('input-bold', None, False),
- ('input-italic', None, False),
- ('input-strike', None, False),
- ('input-clear', None, False),
- ('show-emoji-chooser', None, False),
+ ('input-bold', None, True),
+ ('input-italic', None, True),
+ ('input-strike', None, True),
+ ('input-clear', None, True),
+ ('show-emoji-chooser', None, True),
('activate-message-selection', 'u', True),
('correct-message', None, False),
('quote', 's', False),
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/4351a5a6f02f4d218dffba1148bee75cb67bc1d6...7d7a3296b118919cb92bd34fb32eb2459980cf49
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/4351a5a6f02f4d218dffba1148bee75cb67bc1d6...7d7a3296b118919cb92bd34fb32eb2459980cf49
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