PDF dialogs: one-line file details, only existing layers toggle

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-09-25 13:21:54 +03:00
1 parent 913c845f5b
commit 647a05e37a
2 files changed
+13 -4

No files matched your search

+3 -1
View File
@@ -306,7 +306,9 @@ impl OpenCADStudio {
Some(at) => {
t.hidden.remove(at);
}
None => t.hidden.push(layer),
// Only a layer the file has can be turned off.
None if t.layers.contains(&layer) => t.hidden.push(layer),
None => {}
}
}
}