fix(sheetset): wasm build of lock sync and the save stamp

Restore the web no-op of `sync_drawing_locks` and keep
`stamp_sheet_set_data` (called only by the native save) out of the web
build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-06 09:39:35 +03:00
1 parent 48c4dc1487
commit b0969946b6
1 file changed
+4
+4
View File
@@ -654,6 +654,9 @@ impl OpenCADStudio {
}
}
#[cfg(target_arch = "wasm32")]
fn sync_drawing_locks(&mut self) {}
/// Reload every open set whose `.dst` was changed by someone else.
fn poll_sheet_sets(&mut self) {
let mut changed = false;
@@ -1333,6 +1336,7 @@ impl OpenCADStudio {
/// Before a native save: a drawing that is a sheet of an open set records
/// its link (`AcSheetSetData`), as the reference does when it saves a
/// sheet while its set is open.
#[cfg(not(target_arch = "wasm32"))]
pub(in crate::app) fn stamp_sheet_set_data(&mut self, i: usize) {
let Some(path) = self.tabs[i].current_path.as_ref().map(|p| p.to_string_lossy().to_string()) else {
return;