This commit is contained in:
Dany LE 2021-11-24 23:42:55 +01:00
parent d208aea1b9
commit 64094c29d5
3 changed files with 3 additions and 6 deletions

Binary file not shown.

View File

@ -263,10 +263,7 @@ namespace OS {
}
this.observable[evt].one.forEach((f) => f(d));
this.observable[evt].one = new Set();
this.observable[evt].many.forEach((f) => {
console.log(f, d);
f(d)
});
this.observable[evt].many.forEach((f) => f(d));
}
};
if (evtName === "*") {

View File

@ -296,7 +296,7 @@ namespace OS {
if (this.setting.view) {
this.view.view = this.setting.view;
}
this.subscribe("VFS", (d) => {
this.subscribe("VFS", (d: API.AnnouncementDataType<API.VFS.BaseFileHandle>) => {
if (!this.vfs_event_flag) {
return;
}
@ -305,7 +305,7 @@ namespace OS {
}
if (
d.u_data.hash() === this.currdir.hash() ||
d.u_data.file.parent().hash() === this.currdir.hash()
d.u_data.parent().hash() === this.currdir.hash()
) {
return this.view.path = this.currdir.path;
}