load widgets and hide them

pull/2334/head
thyttan 2022-12-01 00:45:48 +01:00
parent e01e08db22
commit ef74a18566
2 changed files with 3 additions and 8 deletions

View File

@ -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.

View File

@ -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 @@
}
});
}