OP-2414 - refactor of StdOutBroker

Cleaned up unwanted parts (websocket_server).
Split into app and window.
This commit is contained in:
Petr Kalis 2022-02-10 13:01:07 +01:00
parent 1617b5253c
commit 58cc55cff4
4 changed files with 155 additions and 158 deletions

View file

@ -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