Skip to content

Commit 1784b97

Browse files
committed
Close selected task when closing the entire task dialog
So that when openining the task dialog again, it opens on the view with all the selected tasks closes #2
1 parent 40b5a4b commit 1784b97

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/task_manager_dialog.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ mod imp {
135135
this.root_store().set_selected_task(None::<&DistroboxTask>);
136136
});
137137

138+
let this = self.obj().clone();
139+
self.obj().connect_closed(move |_| {
140+
this.root_store().set_selected_task(None::<&DistroboxTask>);
141+
});
142+
138143
self.scrolled_window.set_child(Some(&self.stack));
139144
self.content.append(&self.scrolled_window);
140145

0 commit comments

Comments
 (0)