From bfd91e0ec8483727d9f4c0249cc5af8df20ec5b8 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Thu, 27 Jan 2022 19:08:47 +0100 Subject: [PATCH] OP-2414 - added wrapper If ConsoleAppTray wont be viable this might be easier to modify --- openpype/hosts/harmony/api/lib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openpype/hosts/harmony/api/lib.py b/openpype/hosts/harmony/api/lib.py index 77c3bd22d0..215ef33827 100644 --- a/openpype/hosts/harmony/api/lib.py +++ b/openpype/hosts/harmony/api/lib.py @@ -35,6 +35,9 @@ self.port = None self.log = logging.getLogger(__name__) self.log.setLevel(logging.DEBUG) +def execute_in_main_thread(func, *args, **kwargs): + ConsoleTrayApp.instance().execute_in_main_thread(func, *args, **kwargs) + def signature(postfix="func") -> str: """Return random ECMA6 compatible function name.