Initial version with "auto quit"

Quit the application after a user settable period of time based on a timeout value from the settings.
This commit is contained in:
Philip Abbey
2023-12-02 19:04:53 +00:00
parent ea58171b2f
commit 8c0540ee45
9 changed files with 115 additions and 4 deletions

View File

@ -40,6 +40,7 @@ class HomeAssistantConfirmationDelegate extends WatchUi.ConfirmationDelegate {
}
function onResponse(response) as Lang.Boolean {
getApp().getQuitTimer().reset();
if (response == WatchUi.CONFIRM_YES) {
confirmMethod.invoke();
}