will_umount method in Activity

This commit is contained in:
veeso
2021-03-21 17:16:52 +01:00
parent 30c2aa144b
commit f0d87ff8c4
9 changed files with 95 additions and 50 deletions

View File

@@ -112,12 +112,12 @@ impl SetupActivity {
self.mount_error(err.as_str());
}
// Exit
self.quit = true;
self.exit_reason = Some(super::ExitReason::Quit);
None
}
(COMPONENT_RADIO_QUIT, Msg::OnSubmit(Payload::Unsigned(1))) => {
// Quit
self.quit = true;
self.exit_reason = Some(super::ExitReason::Quit);
self.umount_quit();
None
}