autocollapse notes after period of inactivity + some other changes, #1192

This commit is contained in:
zadam
2020-08-17 20:58:34 +02:00
parent 53b39e2e82
commit f24e27dadd
13 changed files with 81 additions and 46 deletions

View File

@@ -16,7 +16,7 @@ class TreeContextMenu {
this.treeWidget = treeWidget;
this.node = node;
}
async show(e) {
contextMenu.show({
x: e.pageX,
@@ -111,7 +111,14 @@ class TreeContextMenu {
const notePath = treeService.getNotePath(this.node);
if (command === 'openInTab') {
appContext.tabManager.openTabWithNote(notePath);
const start = Date.now();
await this.node.load(true);
console.log("Reload took", Date.now() - start, "ms");
// appContext.tabManager.openTabWithNote(notePath);
}
else if (command === "insertNoteAfter") {
const parentNoteId = this.node.data.parentNoteId;
@@ -136,4 +143,4 @@ class TreeContextMenu {
}
}
export default TreeContextMenu;
export default TreeContextMenu;