cleanup code

This commit is contained in:
DanyLE 2023-06-20 18:02:22 +02:00 committed by Dany LE
parent add5ef77c8
commit acd36a7a29
2 changed files with 0 additions and 4 deletions

View File

@ -730,7 +730,6 @@ namespace OS {
let settings = {}; let settings = {};
try try
{ {
console.log("load setting for", app);
if(mt.path.asFileHandle().protocol === "home") if(mt.path.asFileHandle().protocol === "home")
{ {
settings = await `${mt.path}/.settings.json`.asFileHandle().read("json"); settings = await `${mt.path}/.settings.json`.asFileHandle().read("json");
@ -745,7 +744,6 @@ namespace OS {
{ {
} }
application[app].setting_wdg = API.watcher(settings, (o,k,v,p) => { application[app].setting_wdg = API.watcher(settings, (o,k,v,p) => {
console.log("Changed detected", o, k,v, p);
let key = k; let key = k;
if(p.length > 0) if(p.length > 0)
{ {
@ -761,7 +759,6 @@ namespace OS {
data.message = key; data.message = key;
data.iconclass = mt?mt.iconclass:undefined; data.iconclass = mt?mt.iconclass:undefined;
data.u_data = undefined; data.u_data = undefined;
console.log(data);
return announcer.trigger("appregistry", data); return announcer.trigger("appregistry", data);
}); });
const p = await PM.createProcess( const p = await PM.createProcess(

View File

@ -147,7 +147,6 @@ namespace OS {
} }
file.cache = app_class.setting_wdg; file.cache = app_class.setting_wdg;
//file.cache = JSON.stringify(app_class.setting_wdg, undefined, 4); //file.cache = JSON.stringify(app_class.setting_wdg, undefined, 4);
console.log("save setting file");
file file
.write("object") .write("object")
.catch((e) =>{ .catch((e) =>{