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 . import __about__
from .events.system import CoroutineDone, AppExitRequested
from .events.app import CoroutineDone, ExitRequested
class App:
@ -39,7 +39,7 @@ class App:
from watchgod import awatch
async for _ in awatch(Path(__file__).resolve().parent):
AppExitRequested(231)
ExitRequested(231)
def _loop_starter(self) -> None:

Binary file not shown.

View File

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

View File

@ -1,4 +1,4 @@
function onAppExitRequested(exit_code) {
function onExitRequested(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
Qt.include("system.js")
Qt.include("app.js")