We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc84063 commit fabd58bCopy full SHA for fabd58b
1 file changed
src/composables/useProjectManager.ts
@@ -45,8 +45,7 @@ export function useProjectManager() {
45
clipboardStore.copiedMessages.length > 0 ||
46
filterTool.hasSelection.value ||
47
historyStore.undoStack.length > 0 ||
48
- historyStore.redoStack.length > 0 ||
49
- uiStore.activeChunkId !== null
+ historyStore.redoStack.length > 0
50
);
51
});
52
@@ -93,9 +92,7 @@ export function useProjectManager() {
93
92
clipboardStore.clearClipboard();
94
filterTool.clearSelection();
95
historyStore.clearHistory();
96
-
97
- const firstChunk = project.documents[0]?.chunks[0];
98
- uiStore.setActiveChunk(firstChunk ? firstChunk.chunkId : null);
+ uiStore.focusStack = [];
99
100
return true;
101
}
0 commit comments