Rename "system events" to "app events"
This commit is contained in:
parent
3344debbbf
commit
e5bdf6a497
Binary file not shown.
|
@ -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:
|
||||
|
|
BIN
src/events/__pycache__/app.cpython-36.pyc
Normal file
BIN
src/events/__pycache__/app.cpython-36.pyc
Normal file
Binary file not shown.
|
@ -6,7 +6,7 @@ from .event import Event
|
|||
|
||||
|
||||
@dataclass
|
||||
class AppExitRequested(Event):
|
||||
class ExitRequested(Event):
|
||||
exit_code: int = 0
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
function onAppExitRequested(exit_code) {
|
||||
function onExitRequested(exit_code) {
|
||||
Qt.exit(exit_code)
|
||||
}
|
||||
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user