refactor(src/window/spotlight/plugins): increase timeout interval to 50ms for clipboard and emoji paste actions

This commit is contained in:
sankalp committed 2026-07-15 11:30:46 +05:45
1 parent e6c471a9f8
commit 016d18090d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -205,7 +205,7 @@ class ClipboardPlugin(SpotlightPlugin):
if not decoded: if not decoded:
return return
copy_text(decoded.decode()) copy_text(decoded.decode())
GLib.timeout_add(5, lambda: (trigger_paste_shortcut(), False)[1]) GLib.timeout_add(50, lambda: (trigger_paste_shortcut(0), False)[1])
return _action return _action
+1 -1
View File
@@ -137,7 +137,7 @@ class EmojiPlugin(SpotlightPlugin):
def _copy_to_clipboard(self, emoji_char: str) -> None: def _copy_to_clipboard(self, emoji_char: str) -> None:
copy_text(emoji_char) copy_text(emoji_char)
GLib.timeout_add(5, lambda: (trigger_paste_shortcut(), False)[1]) GLib.timeout_add(50, lambda: (trigger_paste_shortcut(0), False)[1])
def handle_external(self, command: str, args: str) -> None: def handle_external(self, command: str, args: str) -> None:
pass pass