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