dont allow the user to bring up the command desc if there is none

This commit is contained in:
nyx 2024-10-04 00:39:04 -04:00
parent 26d0adc829
commit fba93ec50a
No known key found for this signature in database
GPG Key ID: 9924455A3BB7D06C

View File

@ -666,8 +666,10 @@ impl AppState {
fn enable_description(&mut self) {
if let Some(command_description) = self.get_selected_description() {
let description = FloatingText::new(command_description, FloatingTextMode::Description);
self.spawn_float(description, 80, 80);
if !command_description.is_empty() {
let description = FloatingText::new(command_description, FloatingTextMode::Description);
self.spawn_float(description, 80, 80);
}
}
}