add missing modals release calls

This commit is contained in:
bunnie 2025-04-28 19:03:06 +08:00
parent da7efec6a6
commit 0d2ecc1db3

View file

@ -717,6 +717,8 @@ fn wrapped_main() -> ! {
Some(Opcode::FinishProgress) => msg_scalar_unpack!(msg, caller, _, _, _, {
#[cfg(not(any(feature = "hosted-baosec", feature = "cramium-soc")))]
renderer_modal.gam.relinquish_focus().unwrap();
#[cfg(any(feature = "hosted-baosec", feature = "cramium-soc"))]
renderer_modal.gfx.release_modal().unwrap();
op = RendererState::None;
// unblock the caller, which was forwarded on as the first argument
xous::return_scalar(xous::sender::Sender::from_usize(caller), 0).ok();
@ -769,6 +771,8 @@ fn wrapped_main() -> ! {
Some(Opcode::DoCloseDynamicNotification) => {
#[cfg(not(any(feature = "hosted-baosec", feature = "cramium-soc")))]
renderer_modal.gam.relinquish_focus().unwrap();
#[cfg(any(feature = "hosted-baosec", feature = "cramium-soc"))]
renderer_modal.gfx.release_modal().unwrap();
dynamic_notification_active = false;
op = RendererState::None;
if let Some(sender) = dynamic_notification_listener.take() {