pause/resume current activity

This commit is contained in:
Vishal 2022-08-29 19:39:48 +05:30 committed by GitHub
parent 2ddb0d6eb4
commit ea82263058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -133,8 +133,15 @@ class ContinuesWindow(ba.Window):
ba.WeakCall(self._tick),
repeat=True,
timetype=ba.TimeType.REAL)
# If there is foreground activity, suspend it.
ba.app.pause()
self._tick()
def __del__(self) -> None:
# If there is suspended foreground activity, resume it.
ba.app.resume()
def _tick(self) -> None:
# if our target activity is gone or has ended, go away
activity = self._activity()

View File

@ -236,7 +236,7 @@ class CreditsListWindow(ba.Window):
'${NAME}', 'the Khronos Group') + '\n'
'\n'
' '
' www.froemling.net\n')
' www.ballistica.net\n')
txt = credits_text
lines = txt.splitlines()