diff --git a/src/core/controllers/base_controller_mixin.py b/src/core/controllers/base_controller_mixin.py index 6862b46..efd81d7 100644 --- a/src/core/controllers/base_controller_mixin.py +++ b/src/core/controllers/base_controller_mixin.py @@ -23,7 +23,7 @@ class BaseControllerMixin: if os.path.isdir(arg): message = f"DIR|{arg}" - ipc_server.send_ipc_message(message) + event_system.subscribe("post-file-to-ipc", (message,)) if not files: return diff --git a/src/core/widgets/ocr_window.py b/src/core/widgets/ocr_window.py index bc142dc..462a935 100644 --- a/src/core/widgets/ocr_window.py +++ b/src/core/widgets/ocr_window.py @@ -148,7 +148,7 @@ class OCRWindow(Gtk.Window): def _run_ocr_button(self, button): - active_image = event_system.emit_and_await("get_active_image_path") + active_image = event_system.emit_and_await("get-active-image-path") if not active_image: return