mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
close last tab should behave similarly to 0.47, fixes #2298
This commit is contained in:
@@ -305,6 +305,7 @@ export default class TabManager extends Component {
|
||||
const mainNoteContexts = this.getNoteContexts().filter(nc => nc.isMainContext());
|
||||
|
||||
if (mainNoteContexts.length === 1) {
|
||||
mainNoteContexts[0].setEmpty();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user