mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
dont allow the user to bring up the command desc if there is none
This commit is contained in:
parent
26d0adc829
commit
fba93ec50a
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user