From 5563a293f56c8e2be61008d97658d5d3265f4a87 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 23 Jul 2025 22:00:31 -0400 Subject: [PATCH] fix for empty media url --- src/widgets.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/widgets.rs b/src/widgets.rs index e6e81e5..b896594 100644 --- a/src/widgets.rs +++ b/src/widgets.rs @@ -71,7 +71,13 @@ pub fn content_area(content: &Vec) -> iced::widget::Container pub fn media_view(state: &ui::State) -> Element { match state.current_item.clone().unwrap().media { Some(m) => { - text(format!("",m)).into() + if m.len() > 0{ + text(format!("",m)).into() + } + else { + text("".to_owned()).into() + + } } None => { text("".to_owned()).into()