Add more log/display info

This commit is contained in:
2Shirt 2025-12-13 08:09:49 -08:00
parent a75911cb32
commit e5f476f48d
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 8 additions and 0 deletions

View file

@ -22,6 +22,7 @@ use ratatui::{
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use strum::Display; use strum::Display;
use tokio::sync::mpsc::UnboundedSender; use tokio::sync::mpsc::UnboundedSender;
use tracing::info;
use super::Component; use super::Component;
use crate::{action::Action, config::Config}; use crate::{action::Action, config::Config};
@ -64,6 +65,7 @@ impl Component for Popup {
match action { match action {
Action::DismissPopup => self.popup_text.clear(), Action::DismissPopup => self.popup_text.clear(),
Action::DisplayPopup(new_type, new_text) => { Action::DisplayPopup(new_type, new_text) => {
info!("Show Popup ({new_type}): {new_text}");
self.popup_type = new_type; self.popup_type = new_type;
self.popup_text = format!("\n{new_text}"); self.popup_text = format!("\n{new_text}");
} }

View file

@ -96,6 +96,12 @@ pub fn get_disk_description_right(
line_colors, line_colors,
}); });
}); });
if disk.parts_description.is_empty() {
description.push(DVLine {
line_parts: vec![String::from("-None-")],
line_colors: vec![Color::Reset],
});
}
description description
} }