more tab row refactoring

This commit is contained in:
zadam
2020-01-15 22:27:52 +01:00
parent 1552c3804d
commit cc138ef9f8
4 changed files with 30 additions and 32 deletions

View File

@@ -139,7 +139,7 @@ async function noteDeleted(noteId) {
// not removing active even if it contains deleted note since that one will move to another note (handled by deletion logic)
// and we would lose tab context state (e.g. sidebar visibility)
if (!tc.isActive() && tc.notePath && tc.notePath.split("/").includes(noteId)) {
await tabRow.removeTab(tc.$tab[0]);
tabRow.removeTab(tc.tabId);
}
}
}