From b14a2bf254d90f57f678eb84f1f5d08e57f0180e Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 24 Jun 2024 17:09:07 -0700 Subject: [PATCH] popup: simplify borrow Signed-off-by: William Casarin --- src/ui/global_popup.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/global_popup.rs b/src/ui/global_popup.rs index 8e150bb..d439077 100644 --- a/src/ui/global_popup.rs +++ b/src/ui/global_popup.rs @@ -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; } } }