mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-16 01:38:21 +01:00
This commit is contained in:
parent
46e7e6d94f
commit
3bca423368
@ -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