mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
small changes for better debugging infos
This commit is contained in:
@@ -91,7 +91,7 @@ export default class Component {
|
||||
console.log(`Call to ${fun.name} in ${this.componentId} took ${took}ms`);
|
||||
}
|
||||
|
||||
await promise;
|
||||
await utils.timeLimit(promise, 25000, `Time limit failed on ${this.constructor.name} with ${fun.name}`);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1126,6 +1126,10 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
node = await this.expandToNote(nextNotePath, false);
|
||||
|
||||
if (node) {
|
||||
// FIXME: this is conceptually wrong
|
||||
// here note tree is responsible for updating global state of the application
|
||||
// this should be done by tabcontext / tabmanager and note tree should only listen to
|
||||
// changes in active note and just set the "active" state
|
||||
await appContext.tabManager.getActiveTabContext().setNote(nextNotePath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user