[34] Ansichtsvorlage direkt im Ausschnitte-Panel wählen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
Claude committed 2026-11-04 17:35:34 +00:00
1 parent 7be940b97c
commit f5be12ee4f
6 files changed
+56 -2

No files matched your search

+3 -1
View File
@@ -25,6 +25,7 @@ import type { TabId as ResourceTabId } from "../ui/ResourceManager";
import { isTauriRuntime } from "../native/projectFile";
import { openDrawingLevelsWindowNative } from "../native/drawingLevelsWindow";
import { t } from "../i18n";
import { getState } from "./appStore";
import {
applyOverrideRuleEnabled,
captureViewSnapshot,
@@ -1257,7 +1258,8 @@ export function usePanelHostBase(opts: {
// Massstab-Zoom (Plan muss für den neuen View gemountet sein) via rAF
// nachziehen — analog zum BIM-Tree-Geschosswechsel.
onApplyViewSnapshot: (id: string) => {
const snap = (project.viewSnapshots ?? []).find((s) => s.id === id);
// Aktuellen Stand lesen (direkt nach einer Änderung am Ausschnitt ist `project` hier noch der alte).
const snap = (getState().project.viewSnapshots ?? []).find((s) => s.id === id);
if (!snap) return;
const st = readViewSnapshot(snap);
setActiveLevelId(st.activeLevelId);