fix: multi tab spawn

This commit is contained in:
Zihad 2025-05-11 09:16:14 +06:00
parent 763ccf8c79
commit 80f87bab58

View file

@ -392,9 +392,9 @@ export default class EasyKeepViewPlugin extends Plugin {
this.app.workspace.iterateAllLeaves(leaf => {
const viewType = leaf.view.getViewType();
const viewState = leaf.view.getState();
if ((viewType === "markdown" || viewType === "image") && viewState?.file === filePath) {
if (viewState?.file === filePath) {
existingLeaf = leaf;
}
}
});
if (existingLeaf) {