This commit is contained in:
tamaina 2023-08-06 14:16:33 +00:00
parent a2c130a484
commit e00acb5dc1
1 changed files with 2 additions and 2 deletions

View File

@ -431,14 +431,14 @@ export class NoteManager {
console.error(err);
})
.finally(() => {
console.log('NoteManager: useNote: CapturePromise.finally 1', id);
if (this.isDebuggerEnabled) console.log('NoteManager: useNote: CapturePromise.finally 1', id);
this.capture(id);
using = true;
});
const unuse = (noDeletion = false) => {
CapturePromise.finally(() => {
console.log('NoteManager: useNote: unuse', id, { using, noDeletion });
if (this.isDebuggerEnabled) console.log('NoteManager: useNote: unuse', id, { using, noDeletion });
if (!using) return;
this.decapture(id, noDeletion);
using = false;