Remove handle from general properties
This commit is contained in:
parent
8aca9a0aef
commit
83d41b0f7d
1 changed files with 0 additions and 10 deletions
10
src/scene/cache/properties.rs
vendored
10
src/scene/cache/properties.rs
vendored
|
|
@ -36,11 +36,6 @@ pub fn general_section(entity: &EntityType) -> PropSection {
|
|||
let mut section = PropSection {
|
||||
title: t!("General").into_owned(),
|
||||
props: vec![
|
||||
Property {
|
||||
label: t!("Handle").into_owned(),
|
||||
field: "handle",
|
||||
value: PropValue::ReadOnly(common.handle.value().to_string()),
|
||||
},
|
||||
Property {
|
||||
label: t!("Color").into_owned(),
|
||||
field: "color",
|
||||
|
|
@ -94,12 +89,7 @@ pub fn general_section(entity: &EntityType) -> PropSection {
|
|||
],
|
||||
};
|
||||
|
||||
if matches!(entity, EntityType::LwPolyline(polyline) if crate::entities::lwpolyline::is_rectangle(polyline)) {
|
||||
section.props.retain(|prop| prop.field != "handle");
|
||||
}
|
||||
|
||||
if matches!(entity, EntityType::Point(_)) {
|
||||
section.props.retain(|prop| prop.field != "handle");
|
||||
let hyperlink = section.props.iter().position(|prop| prop.field == "hyperlink");
|
||||
let transparency = section.props.iter().position(|prop| prop.field == "transparency");
|
||||
if let (Some(hyperlink), Some(transparency)) = (hyperlink, transparency) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue