mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 01:18:21 +01:00
cleanup code
This commit is contained in:
parent
add5ef77c8
commit
acd36a7a29
@ -730,7 +730,6 @@ namespace OS {
|
||||
let settings = {};
|
||||
try
|
||||
{
|
||||
console.log("load setting for", app);
|
||||
if(mt.path.asFileHandle().protocol === "home")
|
||||
{
|
||||
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) => {
|
||||
console.log("Changed detected", o, k,v, p);
|
||||
let key = k;
|
||||
if(p.length > 0)
|
||||
{
|
||||
@ -761,7 +759,6 @@ namespace OS {
|
||||
data.message = key;
|
||||
data.iconclass = mt?mt.iconclass:undefined;
|
||||
data.u_data = undefined;
|
||||
console.log(data);
|
||||
return announcer.trigger("appregistry", data);
|
||||
});
|
||||
const p = await PM.createProcess(
|
||||
|
@ -147,7 +147,6 @@ namespace OS {
|
||||
}
|
||||
file.cache = app_class.setting_wdg;
|
||||
//file.cache = JSON.stringify(app_class.setting_wdg, undefined, 4);
|
||||
console.log("save setting file");
|
||||
file
|
||||
.write("object")
|
||||
.catch((e) =>{
|
||||
|
Loading…
Reference in New Issue
Block a user