mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 01:38:21 +01:00
update
This commit is contained in:
parent
d208aea1b9
commit
64094c29d5
Binary file not shown.
@ -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 === "*") {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user