Rename "system events" to "app events"

This commit is contained in:
miruka 2019-06-27 02:36:31 -04:00
parent 3344debbbf
commit e5bdf6a497
6 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@ -8,7 +8,7 @@ from uuid import uuid4
from appdirs import AppDirs from appdirs import AppDirs
from . import __about__ from . import __about__
from .events.system import CoroutineDone, AppExitRequested from .events.app import CoroutineDone, ExitRequested
class App: class App:
@ -39,7 +39,7 @@ class App:
from watchgod import awatch from watchgod import awatch
async for _ in awatch(Path(__file__).resolve().parent): async for _ in awatch(Path(__file__).resolve().parent):
AppExitRequested(231) ExitRequested(231)
def _loop_starter(self) -> None: def _loop_starter(self) -> None:

Binary file not shown.

View File

@ -6,7 +6,7 @@ from .event import Event
@dataclass @dataclass
class AppExitRequested(Event): class ExitRequested(Event):
exit_code: int = 0 exit_code: int = 0

View File

@ -1,4 +1,4 @@
function onAppExitRequested(exit_code) { function onExitRequested(exit_code) {
Qt.exit(exit_code) Qt.exit(exit_code)
} }

View File

@ -1,2 +1,2 @@
// FIXME: Obsolete method, but need Qt 5.12+ for standard JS modules import // FIXME: Obsolete method, but need Qt 5.12+ for standard JS modules import
Qt.include("system.js") Qt.include("app.js")