forked from 1b-agent/opencadstudio-upstream
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:
1 parent
759f2316aa
commit
4a30928f5a
8 files changed
+341
-57
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user