Skip to content

Commit

Permalink
sendCustomizedApp() allows a noFinish setting
Browse files Browse the repository at this point in the history
This will allow `interface.html`s like `fwupdate` to continue
making changes.

See espruino/BangleApps#3153
  • Loading branch information
bobrippling committed Jan 13, 2024
1 parent c97b785 commit 3bbca52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 3 additions & 2 deletions lib/customize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("<CUSTOM> sending app");
window.postMessage({
type : "app",
data : app
data : app,
noFinish
});
}

Expand Down

0 comments on commit 3bbca52

Please sign in to comment.