Skip to content

Commit

Permalink
Bangle.js1: Fix issue where going out of and back into a menu would c…
Browse files Browse the repository at this point in the history
…ause 'Back' to be added twice (fix #2470)
  • Loading branch information
gfwilliams committed May 21, 2024
1 parent 1f78e3d commit 43f806d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
jsvSkipName speed improvements by avoiding repeated masking of flags
No longer call jsvKill/Init when resetting, but just jsvReset (this avoids free+malloc on ESP32)
Bangle.js2: Bangle.setLCDOverlay can now take an object with {id:str, remove:fn} to deal with multiple users of overlays better
Bangle.js1: Fix issue where going out of and back into a menu would cause 'Back' to be added twice (fix #2470)

2v21 : nRF52: free up 800b more flash by removing vector table padding
Throw Exception when a Promise tries to resolve with another Promise (#2450)
Expand Down
4 changes: 2 additions & 2 deletions libs/js/banglejs/E_showMenu_F18.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
var menuItems = Object.keys(items);
if (options) {
menuItems.splice(menuItems.indexOf(""),1);
if (options.back) { // handle 'options.back'
items["< Back"] = options.back;
if (options.back && !items["< Back"]) { // handle 'options.back'
items = Object.assign({"< Back":options.back},items);
menuItems.unshift("< Back");
}
}
Expand Down
8 changes: 4 additions & 4 deletions libs/js/banglejs/E_showMenu_F18.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 43f806d

Please sign in to comment.