From e729ebe2b2d22ede6bab888ff5bf2be92ef9dda3 Mon Sep 17 00:00:00 2001 From: Michael Meuli Date: Fri, 16 Jan 2026 20:31:44 +0100 Subject: [PATCH] only show open button if something can be opened --- src/tab.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tab.rs b/src/tab.rs index dd1e7a4..508b5cc 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -2454,9 +2454,11 @@ impl Item { column = column.push(details); if let Some(path) = self.path_opt() { - column = column.push( - widget::button::standard(fl!("open")).on_press(Message::Open(Some(path.clone()))), - ); + if self.selected { + column = column.push( + widget::button::standard(fl!("open")).on_press(Message::Open(Some(path.clone()))), + ); + } } if !settings.is_empty() {