Initial wiring of managing settings

This commit is contained in:
2025-06-07 23:38:42 -05:00
parent 89b68d0422
commit 8b01314f43
4 changed files with 71 additions and 18 deletions

View File

@@ -0,0 +1,34 @@
const { newtonFs } = require('./fs');
let config = {};
const loadsettings = () => {
config = JSON.parse(
newtonFs.getSettingsConfigData()
);
}
const getConfig = () => {
return config;
}
const saveConfig = () => {
console.log(config);
}
const getIconPath = () => {
return newtonFs.getIconPath();
}
module.exports = {
settingsManager: {
getIconPath: getIconPath,
loadsettings: loadsettings,
getConfig: getConfig,
saveConfig: saveConfig,
}
};