fix: Make task selection jump on add

This commit is contained in:
Dheepak Krishnamurthy 2021-10-31 00:51:50 -06:00
parent 6869a8fd6a
commit 9d389258b1

View file

@ -1237,7 +1237,7 @@ impl TaskwarriorTui {
pub fn update(&mut self, force: bool) -> Result<()> {
if force || self.dirty || self.tasks_changed_since(self.last_export).unwrap_or(true) {
let task_uuids = self.selected_task_uuids();
if self.current_selection_uuid.is_none() && task_uuids.len() == 1 {
if self.current_selection_uuid.is_none() && self.current_selection_id.is_none() && task_uuids.len() == 1 {
if let Some(uuid) = task_uuids.get(0) {
self.current_selection_uuid = Some(*uuid);
}