popup: simplify borrow

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-06-24 17:09:07 -07:00
parent a66b467cb4
commit b14a2bf254

View File

@@ -47,9 +47,11 @@ impl DesktopGlobalPopup {
nav_response.inner
});
let mut app = app_ctx.borrow_mut();
if resp == FixedWindowResponse::Closed {
app_ctx.borrow_mut().global_nav.pop();
app_ctx.borrow_mut().show_global_popup = false;
app.global_nav.pop();
app.show_global_popup = false;
}
}
}