1
0
Fork 0
master
Gordon Williams 2019-11-09 20:41:35 +00:00
parent e9f1cee226
commit 21d3dcedd5
1 changed files with 5 additions and 7 deletions

View File

@ -78,13 +78,11 @@ if (startapp) {
g.setFont("6x8",2); g.setFont("6x8",2);
g.setFontAlign(0,0); g.setFontAlign(0,0);
g.drawString("Loading...",120,120); g.drawString("Loading...",120,120);
if (apps[selected].name=="Clock") load(); // load like this so we ensure we've cleared out our RAM
else { // load like this so we ensure we've cleared out our RAM var cmd = 'eval(require("Storage").read("'+apps[selected].src+'"));';
var cmd = 'eval(require("Storage").read("'+apps[selected].src+'"));'; setTimeout(cmd,20);
setTimeout(cmd,20); // re-add the menu button if we're going to the clock
// re-add the menu button if we're going to the clock if (apps[selected].type=="clock") setWatch(displayMenu, BTN2, {repeat:false});
if (app.type=="clock") setWatch(displayMenu, BTN2, {repeat:false});
}
}, BTN2, {repeat:true}); }, BTN2, {repeat:true});
}, BTN2, {repeat:false}); // menu on middle button }, BTN2, {repeat:false}); // menu on middle button
var WIDGETPOS={tl:32,tr:g.getWidth()-32,bl:32,br:g.getWidth()-32}; var WIDGETPOS={tl:32,tr:g.getWidth()-32,bl:32,br:g.getWidth()-32};