From 16c07f24a5380f329c48f2db4bf41d7580e506bd Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sat, 16 Mar 2024 08:48:21 +0000 Subject: [PATCH] smpltmr: save clkinfo when changing menu --- apps/smpltmr/ChangeLog | 1 + apps/smpltmr/clkinfo.js | 1 + apps/smpltmr/metadata.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/smpltmr/ChangeLog b/apps/smpltmr/ChangeLog index 2c073ff43..dd6c00af9 100644 --- a/apps/smpltmr/ChangeLog +++ b/apps/smpltmr/ChangeLog @@ -7,3 +7,4 @@ 0.07: Update clock_info to avoid a redraw 0.08: Timer ClockInfo now updates once a minute 0.09: Timer ClockInfo resets to timer menu when blurred +0.10: Timer ClockInfo saves clkinfo settings when changing menu diff --git a/apps/smpltmr/clkinfo.js b/apps/smpltmr/clkinfo.js index a7a6bf71b..8ad9809ce 100644 --- a/apps/smpltmr/clkinfo.js +++ b/apps/smpltmr/clkinfo.js @@ -73,6 +73,7 @@ const restoreMainItem = function(clkinfo) { clkinfo.menuB = 0; + clkinfo.save(); // clock info redraws after this }; diff --git a/apps/smpltmr/metadata.json b/apps/smpltmr/metadata.json index 98affcfe6..2f33f07b9 100644 --- a/apps/smpltmr/metadata.json +++ b/apps/smpltmr/metadata.json @@ -2,7 +2,7 @@ "id": "smpltmr", "name": "Simple Timer", "shortName": "Simple Timer", - "version": "0.09", + "version": "0.10", "description": "A very simple app to start a timer.", "icon": "app.png", "tags": "tool,alarm,timer,clkinfo",