mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix inconsistent event sequence when deleting a file from the tree
This commit is contained in:
parent
592a36bcbb
commit
b6db4698a8
@ -131,7 +131,11 @@ define(function(require, module, exports) {
|
||||
function removeTab(e) {
|
||||
if (!e.error) {
|
||||
var tab = findTab(e.path);
|
||||
tab && tab.unload();
|
||||
if (tab) {
|
||||
tab.document.meta.$ignoreSave = true;
|
||||
tab.close();
|
||||
delete tab.document.meta.$ignoreSave;
|
||||
}
|
||||
}
|
||||
}
|
||||
fs.on("afterUnlink", removeTab);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user