waypoints: cleanups, mostly formatting / whitespace.

pull/3659/head
Pavel Machek 2024-11-13 11:28:07 +01:00
parent 2b7062939e
commit de755fc78b
1 changed files with 110 additions and 113 deletions

View File

@ -1,7 +1,6 @@
/* Thanks to pinsafe from BangleApps repository */
var Layout = require("Layout");
const BANGLEJS2 = process.env.HWVERSION == 2; // check for bangle 2
/* fmt library v0.2.2 */
let fmt = {
@ -319,15 +318,13 @@ function mainMenu() {
var menu = {
"< Back" : () => load()
};
if (textInputInstalled && BANGLEJS2) {
menu["Add"]=addCard;
}
menu["Show"]=showCard;
menu["Remove"]=removeCard;
menu["Format"]=setFormat;
if (textInputInstalled && BANGLEJS2) {
if (textInputInstalled) {
menu["Add"]=addCard;
menu["Mark GPS"]=markGps;
}
menu["Remove"]=removeCard;
menu["Format"]=setFormat;
g.clear();
E.showMenu(menu);
}