forked from 1b-agent/opencadstudio-upstream
Fix Properties hyperlink collection editor
This commit is contained in:
1 parent
bb29b987c2
commit
6a1c649016
11 files changed
+272
-13
No files matched your search
Vendored
+5
-2
@@ -30,7 +30,10 @@ pub fn general_section(entity: &EntityType) -> PropSection {
|
||||
},
|
||||
);
|
||||
|
||||
let hyperlink = crate::scene::pe_url_of(entity).unwrap_or_default().to_owned();
|
||||
let hyperlink = crate::scene::pe_url_description_of(entity)
|
||||
.or_else(|| crate::scene::pe_url_of(entity))
|
||||
.unwrap_or_default()
|
||||
.to_owned();
|
||||
|
||||
let section = PropSection {
|
||||
title: t!("General").into_owned(),
|
||||
@@ -83,7 +86,7 @@ pub fn general_section(entity: &EntityType) -> PropSection {
|
||||
Property {
|
||||
label: t!("Hyperlink").into_owned(),
|
||||
field: "hyperlink",
|
||||
value: PropValue::PlainText(hyperlink),
|
||||
value: PropValue::Hyperlink(hyperlink),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user