Correct IPC file load and OCR button signal linkage
This commit is contained in:
@@ -23,7 +23,7 @@ class BaseControllerMixin:
|
|||||||
|
|
||||||
if os.path.isdir(arg):
|
if os.path.isdir(arg):
|
||||||
message = f"DIR|{arg}"
|
message = f"DIR|{arg}"
|
||||||
ipc_server.send_ipc_message(message)
|
event_system.subscribe("post-file-to-ipc", (message,))
|
||||||
|
|
||||||
if not files: return
|
if not files: return
|
||||||
|
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ class OCRWindow(Gtk.Window):
|
|||||||
|
|
||||||
|
|
||||||
def _run_ocr_button(self, button):
|
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
|
if not active_image: return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user