12ce4cdb30
- Application and Engine will be started by __init__.run() independently - Exiting app will disconnect clients - Signals like SIGINT (Ctrl-C) are now handled for proper exit
22 lines
546 B
Python
22 lines
546 B
Python
# Copyright 2019 miruka
|
|
# This file is part of harmonyqml, licensed under GPLv3.
|
|
|
|
import os
|
|
import sys
|
|
|
|
# The disk cache is responsible for multiple display bugs when running
|
|
# the app for the first time/when cache needs to be recompiled, on top
|
|
# of litering the source folders with .qmlc files.
|
|
os.environ["QML_DISABLE_DISK_CACHE"] = "1"
|
|
|
|
|
|
def run() -> None:
|
|
from .app import Application
|
|
app = Application(sys.argv)
|
|
|
|
from .engine import Engine
|
|
engine = Engine(debug=app.debug)
|
|
engine.showWindow()
|
|
|
|
sys.exit(app.exec_())
|