diff options
Diffstat (limited to 'src/ui/task_details.rs')
-rwxr-xr-x | src/ui/task_details.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/task_details.rs b/src/ui/task_details.rs index e462eb4..47ea369 100755 --- a/src/ui/task_details.rs +++ b/src/ui/task_details.rs @@ -444,7 +444,11 @@ impl FurTaskDetails { imp.all_task_ids.borrow_mut().clear(); let window = FurtheranceWindow::default(); window.reset_history_box(); - self.setup_widgets(updated_list); + if updated_list.len() > 0 { + self.setup_widgets(updated_list); + } else { + self.close(); + } } fn setup_signals(&self) { |