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 = {};
|
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(
|
||||||
|
@ -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) =>{
|
||||||
|
Loading…
Reference in New Issue
Block a user