From 79c1362145d7721f917650b60f5a8f2474d19284 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 7 Mar 2025 17:15:00 +0000 Subject: [PATCH] iconlaunch: Ensure 'oneClickExit' is the default, and remove useless btn:line --- apps/iconlaunch/ChangeLog | 3 ++- apps/iconlaunch/app.js | 5 ++--- apps/iconlaunch/settings.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/iconlaunch/ChangeLog b/apps/iconlaunch/ChangeLog index 8b333ba38..cd36a4468 100644 --- a/apps/iconlaunch/ChangeLog +++ b/apps/iconlaunch/ChangeLog @@ -24,4 +24,5 @@ 0.17: fix fullscreen with oneClickExit 0.18: Better performance 0.19: Remove 'jit' keyword as 'for(..of..)' is not supported (fix #2937) -0.20: Use '28' font if installed (2v26+) and put it inside a rounded rect in the current theme \ No newline at end of file +0.20: Use '28' font if installed (2v26+) and put it inside a rounded rect in the current theme + Ensure 'oneClickExit' is the default \ No newline at end of file diff --git a/apps/iconlaunch/app.js b/apps/iconlaunch/app.js index c1d5efef8..5e3b6305e 100644 --- a/apps/iconlaunch/app.js +++ b/apps/iconlaunch/app.js @@ -4,7 +4,7 @@ showClocks: true, fullscreen: false, direct: false, - oneClickExit: false, + oneClickExit: true, swipeExit: false, timeOut:"Off" }, s.readJSON("iconlaunch.json", true) || {}); @@ -137,8 +137,7 @@ require("widget_utils").show(); } if(idWatch) clearWatch(idWatch); - }, - btn:Bangle.showClock + } }; //work both the fullscreen and the oneClickExit diff --git a/apps/iconlaunch/settings.js b/apps/iconlaunch/settings.js index ef2c188d7..a0d4c9e8c 100644 --- a/apps/iconlaunch/settings.js +++ b/apps/iconlaunch/settings.js @@ -5,7 +5,7 @@ showClocks: true, fullscreen: false, direct: false, - oneClickExit: false, + oneClickExit: true, swipeExit: false, timeOut:"Off" }, s.readJSON("iconlaunch.json", true) || {}); @@ -19,7 +19,7 @@ "": { "title": /*LANG*/"Launcher", back: back }, /*LANG*/"Show Clocks": { value: settings.showClocks == true, - onchange: (m) => { + onchange: (m) => { save("showClocks", m); s.erase("iconlaunch.cache.json"); //delete the cache app list }