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


Commits:
3bc2f39b by wurstsalat at 2022-10-11T11:34:18+02:00
perf: Emoji completion: Abort early if max menu entry count reached

- - - - -


1 changed file:

- gajim/gtk/chat_action_processor.py


Changes:

=====================================
gajim/gtk/chat_action_processor.py
=====================================
@@ -230,7 +230,7 @@ def _update_emoji_menu(self,
             if not shortcode.startswith(action_text[1:]):
                 continue
             if menu_entry_count >= MAX_ENTRIES:
-                continue
+                break
             action_data = GLib.Variant('s', codepoint)
             menu_item = Gio.MenuItem()
             menu_item.set_label(f'{codepoint} {shortcode}')



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/3bc2f39babc8a71c9ce83bd4a0ac48a630f67384

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/3bc2f39babc8a71c9ce83bd4a0ac48a630f67384
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