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