Highlight default clock if none currently selected

master
Nick O'Leary 2019-11-16 22:36:43 +00:00
parent c89ad11d69
commit dc2013751a
2 changed files with 3 additions and 3 deletions

View File

@ -187,9 +187,9 @@ function showClockMenu() {
}, },
'< Back': showMainMenu, '< Back': showMainMenu,
}; };
clockApps.forEach(app => { clockApps.forEach((app,index) => {
var label = app.name; var label = app.name;
if (settings.clock === app.src) { if ((!settings.clock && index === 0) || (settings.clock === app.src)) {
label = "* "+label; label = "* "+label;
} }
clockMenu[label] = () => { clockMenu[label] = () => {

File diff suppressed because one or more lines are too long