fix: treat closing the confirmation dialog as reverting

This commit is contained in:
Ilya Zlobintsev 2023-09-23 08:47:10 +03:00
parent 10e8d91223
commit 9dbbab29cc

View File

@ -449,8 +449,7 @@ impl App {
dialog.run_async(clone!(@strong self as app => move |diag, response| {
let command = match response {
ResponseType::Yes => ConfirmCommand::Confirm,
ResponseType::No => ConfirmCommand::Revert,
_ => unreachable!(),
_ => ConfirmCommand::Revert,
};
diag.hide();