[136] Reiter und Ausschnitte entkoppelt: Reiterleiste zeigt offene Ansichten, Ausschnitte nur im Panel

This commit is contained in:
Claude committed 2026-11-05 10:01:32 +00:00
1 parent d669e5db56
commit 5e451fdf09
12 files changed
+298 -381

No files matched your search

+6 -1
View File
@@ -71,6 +71,7 @@ import type { StoreApi } from "./store";
import { createHistorySlice, historyPatch, labelCommit, storeDocument } from "./historySlice";
import type { HistorySlice } from "./historySlice";
import { opsLabel } from "./historyLabels";
import { resetViewTabs } from "./viewTabs";
import type { NotifyKind } from "./notifySlice";
/** Felder, die diese Slice in den RootState beisteuert. */
@@ -604,12 +605,16 @@ export function createProjectSlice(
const doc = storeDocument(get().project);
doc.load(next);
set({ project: next, ...historyPatch(doc) });
resetViewTabs(); // [136] neues Projekt: ein Reiter mit der aktuellen Ansicht
},
openProjectFile: (text) => {
const doc = storeDocument(get().project);
const r = doc.loadFile(text);
if (r.ok) set({ project: r.project, ...historyPatch(doc) });
if (r.ok) {
set({ project: r.project, ...historyPatch(doc) });
resetViewTabs(); // [136]
}
return r;
},