clock_info: set CLKINFO_FOCUS on start
parent
70620c1dab
commit
1d6457ed19
|
|
@ -294,9 +294,9 @@ exports.addInteractive = function(menu, options) {
|
||||||
if (redraw) options.redraw();
|
if (redraw) options.redraw();
|
||||||
};
|
};
|
||||||
const focus = (redraw) => {
|
const focus = (redraw) => {
|
||||||
|
Bangle.CLKINFO_FOCUS=true;
|
||||||
if (!options.focus) {
|
if (!options.focus) {
|
||||||
options.focus=true;
|
options.focus=true;
|
||||||
Bangle.CLKINFO_FOCUS=true;
|
|
||||||
const itm = menu[options.menuA].items[options.menuB];
|
const itm = menu[options.menuA].items[options.menuB];
|
||||||
if (itm.focus && itm.focus(options) === false)
|
if (itm.focus && itm.focus(options) === false)
|
||||||
redraw = false;
|
redraw = false;
|
||||||
|
|
@ -362,6 +362,7 @@ exports.addInteractive = function(menu, options) {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
if (options.focus) focus();
|
||||||
delete settings; // don't keep settings in RAM - save space
|
delete settings; // don't keep settings in RAM - save space
|
||||||
return options;
|
return options;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue