Philipp Hörist pushed to branch master at gajim / gajim


Commits:
0c81115f by Philipp Hörist at 2022-10-30T16:50:01+01:00
refactor: Enable message input actions always

- - - - -
66481d53 by Philipp Hörist at 2022-10-30T16:50:01+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,12 @@ 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),
+    ('input-bold', None, True),
+    ('input-italic', None, True),
+    ('input-strike', None, True),
+    ('input-clear', None, True),
     ('show-emoji-chooser', None, False),
+    ('show-emoji-chooser', None, True),
     ('correct-message', None, False),
     ('quote', 's', False),
     ('mention', 's', False),



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/a3cd8882d0e20703be69d87adc369db158ad3a6e...66481d536f4c37664d4f031cf574bd6f8bcf8d01

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/a3cd8882d0e20703be69d87adc369db158ad3a6e...66481d536f4c37664d4f031cf574bd6f8bcf8d01
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

Reply via email to