From 0d2ecc1db378b86c62d4f3f8df820c635fb12fba Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 28 Apr 2025 19:03:06 +0800 Subject: [PATCH] add missing modals release calls --- services/modals/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/modals/src/main.rs b/services/modals/src/main.rs index 8197bfb40..bcc642988 100644 --- a/services/modals/src/main.rs +++ b/services/modals/src/main.rs @@ -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() {