diff options
author | wurstsalat <mailtrash@posteo.de> | 2022-10-11 12:34:18 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2022-10-11 12:34:18 +0300 |
commit | 3bc2f39babc8a71c9ce83bd4a0ac48a630f67384 (patch) | |
tree | 1df10f05c2fb8d601f9d794c1aa28f454a5667b1 | |
parent | e7f6f67450cc2f0174036210a384a20d8dc59301 (diff) |
perf: Emoji completion: Abort early if max menu entry count reached
-rw-r--r-- | gajim/gtk/chat_action_processor.py | 2 |
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}') |