diff --git a/core/src/components/popup.rs b/core/src/components/popup.rs index 742f9e0..dabaeab 100644 --- a/core/src/components/popup.rs +++ b/core/src/components/popup.rs @@ -22,6 +22,7 @@ use ratatui::{ use serde::{Deserialize, Serialize}; use strum::Display; use tokio::sync::mpsc::UnboundedSender; +use tracing::info; use super::Component; use crate::{action::Action, config::Config}; @@ -64,6 +65,7 @@ impl Component for Popup { match action { Action::DismissPopup => self.popup_text.clear(), Action::DisplayPopup(new_type, new_text) => { + info!("Show Popup ({new_type}): {new_text}"); self.popup_type = new_type; self.popup_text = format!("\n{new_text}"); } diff --git a/core/src/line.rs b/core/src/line.rs index 18fbdf6..7b87d41 100644 --- a/core/src/line.rs +++ b/core/src/line.rs @@ -96,6 +96,12 @@ pub fn get_disk_description_right( line_colors, }); }); + if disk.parts_description.is_empty() { + description.push(DVLine { + line_parts: vec![String::from("-None-")], + line_colors: vec![Color::Reset], + }); + } description }