From a2e0040e5ecaf321a394f2ddc03c0f083e0d4bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:46:25 +0800 Subject: [PATCH] issues/1064 --- LunaTranslator/LunaTranslator/gui/setting_hotkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/gui/setting_hotkey.py b/LunaTranslator/LunaTranslator/gui/setting_hotkey.py index 43d5973f..18585067 100644 --- a/LunaTranslator/LunaTranslator/gui/setting_hotkey.py +++ b/LunaTranslator/LunaTranslator/gui/setting_hotkey.py @@ -74,7 +74,7 @@ def registrhotkeys(self): windows.RegisterWindowMessage("Magpie_Core_CLI_Message_ToggleOverlay"), ), "_26": gobject.baseobject.translation_ui.ocr_once_signal.emit, - "_26_1": gobject.baseobject.translation_ui.ocr_do_function( + "_26_1": lambda: gobject.baseobject.translation_ui.ocr_do_function( gobject.baseobject.translation_ui.ocr_once_follow_rect ), "_27": gobject.baseobject.translation_ui.simulate_key_enter,