Put default app first in open with list

This commit is contained in:
Jeremy Soller 2024-03-04 11:30:51 -07:00
parent 3e1e6b090e
commit a4efff3873
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 17 additions and 4 deletions

View file

@ -525,7 +525,11 @@ impl Item {
widget::button(
widget::row::with_children(vec![
widget::icon(app.icon.clone()).into(),
widget::text(&app.name).into(),
if app.is_default {
widget::text(fl!("default-app", name = app.name.as_str())).into()
} else {
widget::text(&app.name).into()
},
])
.spacing(space_xs),
)