[ActivityReminder] Small change on settings.js to allow futur flexibility

master
Stiralbios 2022-08-20 14:35:26 +02:00
parent 8cc79a77d0
commit a787181206
1 changed files with 79 additions and 73 deletions

View File

@ -3,8 +3,8 @@
const activityreminder = require("activityreminder"); const activityreminder = require("activityreminder");
let settings = activityreminder.loadSettings(); let settings = activityreminder.loadSettings();
// Show the menu function getMainMenu(){
E.showMenu({ var mainMenu = {
"": { "title": "Activity Reminder" }, "": { "title": "Activity Reminder" },
"< Back": () => back(), "< Back": () => back(),
'Enable': { 'Enable': {
@ -76,5 +76,11 @@
activityreminder.writeSettings(settings); activityreminder.writeSettings(settings);
} }
} }
}); };
return mainMenu;
}
// Show the menu
E.showMenu(getMainMenu());
}) })