[136] Reiter und Ausschnitte entkoppelt: Reiterleiste zeigt offene Ansichten, Ausschnitte nur im Panel
This commit is contained in:
12 files changed
+298
-381
No files matched your search
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user