Fix Properties hyperlink collection editor

This commit is contained in:
ramox81 committed 2026-09-17 18:17:25 +03:00
1 parent bb29b987c2
commit 6a1c649016
11 files changed
+272 -13

No files matched your search

+5 -2
View File
@@ -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),
},
],
};