chore: update libcosmic
This commit is contained in:
parent
fac5a25a3f
commit
4828bae81d
5 changed files with 515 additions and 517 deletions
21
src/tab.rs
21
src/tab.rs
|
|
@ -1560,15 +1560,18 @@ impl Item {
|
|||
if !mime_apps.is_empty() {
|
||||
settings.push(
|
||||
widget::settings::item::builder(fl!("open-with")).control(
|
||||
widget::dropdown(
|
||||
mime_apps,
|
||||
mime_apps.iter().position(|x| x.is_default),
|
||||
|index| {
|
||||
let mime_app = &mime_apps[index];
|
||||
Message::SetOpenWith(self.mime.clone(), mime_app.id.clone())
|
||||
},
|
||||
Element::from(
|
||||
widget::dropdown(
|
||||
mime_apps,
|
||||
mime_apps.iter().position(|x| x.is_default),
|
||||
move |index| index,
|
||||
)
|
||||
.icons(mime_app_cache.icons(&self.mime)),
|
||||
)
|
||||
.icons(mime_app_cache.icons(&self.mime)),
|
||||
.map(|index| {
|
||||
let mime_app = &mime_apps[index];
|
||||
Message::SetOpenWith(self.mime.clone(), mime_app.id.clone())
|
||||
}),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
@ -3771,7 +3774,7 @@ impl Tab {
|
|||
location.with_path(PathBuf::from(input)).into(),
|
||||
))
|
||||
})
|
||||
.on_submit(Message::EditLocationSubmit)
|
||||
.on_submit(|_| Message::EditLocationSubmit)
|
||||
.line_height(1.0);
|
||||
let mut popover =
|
||||
widget::popover(text_input).position(widget::popover::Position::Bottom);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue