mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 23:46:41 +02:00
fix: Make task selection jump on add
This commit is contained in:
parent
6869a8fd6a
commit
9d389258b1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue