mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
a87f096fb1
commit
c20da40cd7
9 changed files with 32 additions and 26 deletions
|
|
@ -23,7 +23,7 @@ import {showMessage} from "../dialog/message";
|
|||
import {openFileById, updatePanelByEditor} from "../editor/util";
|
||||
import {scrollCenter} from "../util/highlightById";
|
||||
import {getAllModels} from "./getAll";
|
||||
import {countBlockWord} from "./status";
|
||||
import {clearCounter} from "./status";
|
||||
import {saveScroll} from "../protyle/scroll/saveScroll";
|
||||
import {Asset} from "../asset";
|
||||
import {newFile} from "../util/newFile";
|
||||
|
|
@ -534,7 +534,6 @@ export class Wnd {
|
|||
}
|
||||
});
|
||||
model.editor.destroy();
|
||||
countBlockWord([]);
|
||||
return;
|
||||
}
|
||||
if (model instanceof Search) {
|
||||
|
|
@ -552,6 +551,7 @@ export class Wnd {
|
|||
}
|
||||
|
||||
private removeTabAction = (id: string, closeAll = false, hasSaveScroll = true) => {
|
||||
clearCounter();
|
||||
this.children.find((item, index) => {
|
||||
if (item.id === id) {
|
||||
if (item.model instanceof Editor && hasSaveScroll) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue