fix(ui): refine empty drawing state

Show drawing defaults when nothing is selected and disable layout controls on Start.

Refs #514
Refs #515
This commit is contained in:
Hakan Seven 2026-07-27 17:37:17 +03:00
commit 4a30928f5a
8 changed files with 341 additions and 57 deletions

View file

@ -67,10 +67,6 @@ pub fn build_cache(document: &CadDocument) -> ObjectDataCache {
}
}
pub fn cached_document_sections(cache: &ObjectDataCache) -> Vec<PropSection> {
cache.document_sections.as_ref().clone()
}
pub fn cache_is_prepared(cache: &ObjectDataCache) -> bool {
!cache.document_sections.is_empty()
}