mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-21 21:09:42 +00:00
dont allow the user to bring up the command desc if there is none (#753)
* dont allow the user to bring up the command desc if there is none * obey our god lints --------- Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
parent
52565e5ea1
commit
72dfb29969
|
@ -704,10 +704,12 @@ impl AppState {
|
|||
|
||||
fn enable_description(&mut self) {
|
||||
if let Some(command_description) = self.get_selected_description() {
|
||||
if !command_description.is_empty() {
|
||||
let description = FloatingText::new(command_description, "Command Description");
|
||||
self.spawn_float(description, 80, 80);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn get_selected_item_type(&self) -> SelectedItem {
|
||||
if self.selected_item_is_up_dir() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user