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.forEach((f) => f(d));
this.observable[evt].one = new Set(); this.observable[evt].one = new Set();
this.observable[evt].many.forEach((f) => { this.observable[evt].many.forEach((f) => f(d));
console.log(f, d);
f(d)
});
} }
}; };
if (evtName === "*") { if (evtName === "*") {

View File

@ -296,7 +296,7 @@ namespace OS {
if (this.setting.view) { if (this.setting.view) {
this.view.view = 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) { if (!this.vfs_event_flag) {
return; return;
} }
@ -305,7 +305,7 @@ namespace OS {
} }
if ( if (
d.u_data.hash() === this.currdir.hash() || 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; return this.view.path = this.currdir.path;
} }