Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
6651b2d4 by wurstsalat at 2023-11-07T21:16:54+01:00
fix: Message input: Don't allow text actions if input is disabled

- - - - -


1 changed file:

- gajim/gtk/message_actions_box.py


Changes:

=====================================
gajim/gtk/message_actions_box.py
=====================================
@@ -140,6 +140,10 @@ def _on_action(self,
         action_name = action.get_name()
         log.info('Activate action: %s', action_name)
 
+        if not self.msg_textview.is_sensitive():
+            log.info('Action dismissed, input is not enabled')
+            return
+
         if action_name == 'input-clear':
             self._on_clear()
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/6651b2d4997ed133069882f4549b3f1b1fc5d19d

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/6651b2d4997ed133069882f4549b3f1b1fc5d19d
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to