1
0
Fork 0

Improve kassandra end dialog

This commit is contained in:
Malte Brandy 2018-07-20 14:51:08 +02:00
parent c53f33fdd5
commit a6c8b32e69
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -1105,27 +1105,29 @@ Do you want to change the state? (Esc to cancel)",
]; ];
if self.dialog.select_option(msg, options)? { if self.dialog.select_option(msg, options)? {
self.show_priorities((PS::Medium, true))?; self.show_priorities((PS::Medium, true))?;
} else {
return Ok(());
} }
return Ok(()); } else {
}; let msg = format!("What do you want to do now?");
let msg = format!("What do you want to do now?");
match self.dialog.select_option(msg, options)? { match self.dialog.select_option(msg, options)? {
Select::Manual => { Select::Manual => {
str2cmd("tasklauncher").output()?; str2cmd("tasklauncher").output()?;
self.cache.refresh()?; self.cache.refresh()?;
}
Select::PromoteTasks => {
self.show_priorities((PS::Medium, true))?;
self.cache.refresh()?;
}
Select::ChangeState => {
self.confirm_state()?;
self.cache.refresh()?;
}
Select::T(u) => self.edit_task(&u)?,
} }
Select::PromoteTasks => { self.cache.write()?;
self.show_priorities((PS::Medium, true))?;
self.cache.refresh()?;
}
Select::ChangeState => {
self.confirm_state()?;
self.cache.refresh()?;
}
Select::T(u) => self.edit_task(&u)?,
} }
self.cache.write()?;
} }
} }