This commit is contained in:
nyx 2024-10-10 10:09:35 +00:00 committed by GitHub
commit 9e919efd13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -665,10 +665,12 @@ impl AppState {
fn enable_description(&mut self) { fn enable_description(&mut self) {
if let Some(command_description) = self.get_selected_description() { if let Some(command_description) = self.get_selected_description() {
if !command_description.is_empty() {
let description = FloatingText::new(command_description, "Command Description"); let description = FloatingText::new(command_description, "Command Description");
self.spawn_float(description, 80, 80); self.spawn_float(description, 80, 80);
} }
} }
}
fn handle_enter(&mut self) { fn handle_enter(&mut self) {
if self.selected_item_is_cmd() { if self.selected_item_is_cmd() {