mirror of https://github.com/espruino/BangleApps
load widgets and hide them
parent
e01e08db22
commit
ef74a18566
|
@ -8,5 +8,4 @@
|
|||
0.08: Force background of widget field to the torch colour
|
||||
0.09: Change code taking FW tweaks into account
|
||||
0.10: Introduce fast switching.
|
||||
0.11: Make compatible with Fastload Utils by loading widgets. No change if
|
||||
Fastload Utils is not installed.
|
||||
0.11: Make compatible with Fastload Utils by loading and hiding widgets.
|
||||
|
|
|
@ -20,11 +20,8 @@
|
|||
g.setTheme({bg:settings.bg,fg:"#000"});
|
||||
g.setColor(settings.bg);
|
||||
g.fillRect(0,0,g.getWidth(),g.getHeight());
|
||||
if (s.read('fastload.cache')!==undefined) {
|
||||
Bangle.loadWidgets();
|
||||
if (process.env.HWVERSION==1) wu.hide();
|
||||
if (process.env.HWVERSION==2) wu.swipeOn();
|
||||
}
|
||||
Bangle.loadWidgets();
|
||||
wu.hide();
|
||||
Bangle.setUI({
|
||||
mode : 'custom',
|
||||
back : Bangle.showClock, // B2: SW back button to exit
|
||||
|
@ -37,4 +34,3 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue