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

@ -24,7 +24,14 @@
<!-- Best be a public URL in order to work away from your home LAN and have a trusted HTTPS certificate -->
<property id="config_url" type="string"></property>
<!--
Application timeout in seconds, except 0 for no timeout (default). After this amount of elapsed time
with no activity, exit the application.
-->
<property id="app_timeout" type="number">0</property>
<property id="types_representation" type="boolean"></property>
<property id="menu_alignment" type="boolean"></property>
</properties>

View File

@ -43,6 +43,16 @@
/>
</setting>
<setting
propertyKey="@Properties.app_timeout"
title="Timeout in seconds. Exit the application after this period of inactivity to save the device battery."
>
<settingConfig
type="numeric"
min="0"
/>
</setting>
<setting
propertyKey="@Properties.types_representation"
title="Representing types with icons (off) or with labels (on)"
@ -60,4 +70,12 @@
type="boolean"
/>
</setting>
<!--
<defaults>
<entry>
<default id="app_timeout">20</default>
</entry>
</defaults>
-->
</settings>