File tree Expand file tree Collapse file tree 4 files changed +5
-1
lines changed
Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11110.07: Fix bug with alarms app (scroller) and correctly show images
12120.08: Fix bug with modifying menu - allows hadash to save scroll positions
13130.09: Don't show "..." if a string isn't truncated (i.e. scrolled)
14+ 0.10: Trigger `remove` callbacks when ending the menu
Original file line number Diff line number Diff line change @@ -193,9 +193,11 @@ E.showMenu = function (items) {
193193 mode : "updown" ,
194194 back : back ,
195195 remove : function ( ) {
196+ var _a ;
196197 if ( nameScroller )
197198 clearInterval ( nameScroller ) ;
198199 Bangle . removeListener ( "swipe" , onSwipe ) ;
200+ ( _a = options . remove ) === null || _a === void 0 ? void 0 : _a . call ( options ) ;
199201 } ,
200202 } , function ( dir ) {
201203 if ( dir )
Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ E.showMenu = (items?: Menu): MenuInstance => {
240240 remove : ( ) => {
241241 if ( nameScroller ) clearInterval ( nameScroller ) ;
242242 Bangle . removeListener ( "swipe" , onSwipe ) ;
243+ options . remove ?.( ) ;
243244 } ,
244245 } as SetUIArg < "updown" > ,
245246 dir => {
Original file line number Diff line number Diff line change 11{
22 "id" : " promenu" ,
33 "name" : " Pro Menu" ,
4- "version" : " 0.09 " ,
4+ "version" : " 0.10 " ,
55 "description" : " Replace the built in menu function. Supports Bangle.js 1 and Bangle.js 2." ,
66 "icon" : " icon.png" ,
77 "type" : " bootloader" ,
You can’t perform that action at this time.
0 commit comments