Open file on double-click in "Open With"
This commit is contained in:
parent
54b884e5f8
commit
f98e4c1820
1 changed files with 31 additions and 27 deletions
|
|
@ -4807,6 +4807,7 @@ impl Application for App {
|
||||||
last_kind = *kind;
|
last_kind = *kind;
|
||||||
}
|
}
|
||||||
column = column.add(
|
column = column.add(
|
||||||
|
widget::mouse_area(
|
||||||
widget::button::custom(
|
widget::button::custom(
|
||||||
widget::row::with_children(vec![
|
widget::row::with_children(vec![
|
||||||
widget::icon(app.icon.clone()).size(32).into(),
|
widget::icon(app.icon.clone()).size(32).into(),
|
||||||
|
|
@ -4835,7 +4836,10 @@ impl Application for App {
|
||||||
)
|
)
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
.class(theme::Button::MenuItem)
|
.class(theme::Button::MenuItem)
|
||||||
.on_press(Message::OpenWithSelection(i)),
|
.force_enabled(true),
|
||||||
|
)
|
||||||
|
.on_press(Message::OpenWithSelection(i))
|
||||||
|
.on_double_press(Message::DialogComplete),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue