Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2022-10-11 12:34:18 +0300
committerwurstsalat <mailtrash@posteo.de>2022-10-11 12:34:18 +0300
commit3bc2f39babc8a71c9ce83bd4a0ac48a630f67384 (patch)
tree1df10f05c2fb8d601f9d794c1aa28f454a5667b1
parente7f6f67450cc2f0174036210a384a20d8dc59301 (diff)
perf: Emoji completion: Abort early if max menu entry count reached
-rw-r--r--gajim/gtk/chat_action_processor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gajim/gtk/chat_action_processor.py b/gajim/gtk/chat_action_processor.py
index a4af8e269..ddc2a85c9 100644
--- a/gajim/gtk/chat_action_processor.py
+++ b/gajim/gtk/chat_action_processor.py
@@ -230,7 +230,7 @@ class ChatActionProcessor(Gtk.Popover):
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}')