From e5f476f48d3f94e21ab38b9a8680ea1b74b3c3e1 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 13 Dec 2025 08:09:49 -0800 Subject: [PATCH] Add more log/display info --- core/src/components/popup.rs | 2 ++ core/src/line.rs | 6 ++++++ 2 files changed, 8 insertions(+) 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 }