mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-2414 - refactor of StdOutBroker
Cleaned up unwanted parts (websocket_server). Split into app and window.
This commit is contained in:
parent
1617b5253c
commit
58cc55cff4
4 changed files with 155 additions and 158 deletions
|
|
@ -51,8 +51,8 @@ class ProcessContext:
|
|||
callback()
|
||||
if cls.process is not None and cls.process.poll() is not None:
|
||||
log.info("Server is not running, closing")
|
||||
ProcessContext.stdout_broker.exit()
|
||||
sys.exit()
|
||||
ProcessContext.stdout_broker.stop()
|
||||
QtWidgets.QApplication.quit()
|
||||
|
||||
|
||||
def signature(postfix="func") -> str:
|
||||
|
|
@ -88,7 +88,7 @@ def main(*subprocess_args):
|
|||
app.setWindowIcon(icon)
|
||||
|
||||
ProcessContext.stdout_broker = StdOutBroker('harmony')
|
||||
|
||||
ProcessContext.stdout_broker.start()
|
||||
launch(*subprocess_args)
|
||||
|
||||
loop_timer = QtCore.QTimer()
|
||||
|
|
@ -620,4 +620,3 @@ def find_node_by_name(name, node_type):
|
|||
return node
|
||||
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue