remove extras

This commit is contained in:
yggverse 2025-03-22 05:50:02 +02:00
parent 97b22fd09c
commit f8dc2ceccd

View file

@ -24,14 +24,13 @@ impl Dialog for PreferencesDialog {
p.add(&{
let g = PreferencesGroup::builder().title("Meta").build();
if let Some(ref mime) = info.mime {
g.add(&{
let r = ActionRow::builder()
g.add(
&ActionRow::builder()
.css_classes(["property"])
.subtitle(mime)
.title("Content type")
.build();
r
})
.build(),
)
}
g
});
@ -42,12 +41,11 @@ impl Dialog for PreferencesDialog {
if let Some(ref size) = info.size {
g.add(&{
use crate::tool::Format;
let r = ActionRow::builder()
ActionRow::builder()
.css_classes(["property"])
.subtitle(size.bytes())
.title("Content")
.build();
r
.build()
})
}
g