only show open button if something can be opened
This commit is contained in:
parent
3e932877a9
commit
e729ebe2b2
1 changed files with 5 additions and 3 deletions
|
|
@ -2454,9 +2454,11 @@ impl Item {
|
||||||
column = column.push(details);
|
column = column.push(details);
|
||||||
|
|
||||||
if let Some(path) = self.path_opt() {
|
if let Some(path) = self.path_opt() {
|
||||||
column = column.push(
|
if self.selected {
|
||||||
widget::button::standard(fl!("open")).on_press(Message::Open(Some(path.clone()))),
|
column = column.push(
|
||||||
);
|
widget::button::standard(fl!("open")).on_press(Message::Open(Some(path.clone()))),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !settings.is_empty() {
|
if !settings.is_empty() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue