From 3bbca52f36237e92265749ee86069468460488a1 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sat, 13 Jan 2024 11:49:00 +0000 Subject: [PATCH] sendCustomizedApp() allows a noFinish setting This will allow `interface.html`s like `fwupdate` to continue making changes. See https://github.com/espruino/BangleApps/issues/3153 --- js/index.js | 2 +- lib/customize.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/js/index.js b/js/index.js index 8e7b6d4..83f7c3c 100644 --- a/js/index.js +++ b/js/index.js @@ -353,7 +353,7 @@ function handleCustomApp(appTemplate) { getInstalledApps() .then(()=>checkDependencies(app)) - .then(()=>Comms.uploadApp(app,{device:device, language:LANGUAGE})) + .then(()=>Comms.uploadApp(app,{device:device, language:LANGUAGE, noFinish:msg.noFinish})) .then(()=>{ Progress.hide({sticky:true}); resolve(); diff --git a/lib/customize.js b/lib/customize.js index d8a45f4..135282b 100644 --- a/lib/customize.js +++ b/lib/customize.js @@ -58,11 +58,12 @@ Util.saveCSV(filename, csvData) // pop up a dialog to save a CSV Util.showModal(title) // show a modal screen over everything in this window Util.hideModal() // hide the modal from showModal */ -function sendCustomizedApp(app) { +function sendCustomizedApp(app, noFinish) { console.log(" sending app"); window.postMessage({ type : "app", - data : app + data : app, + noFinish }); }