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()