Improve kassandra end dialog
This commit is contained in:
parent
c53f33fdd5
commit
a6c8b32e69
1 changed files with 19 additions and 17 deletions
|
@ -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()?;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue