notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit b14a2bf254d90f57f678eb84f1f5d08e57f0180e
parent a66b467cb4343fefdb6cd0c799af05d50c94dabf
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 24 Jun 2024 17:09:07 -0700

popup: simplify borrow

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/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 @@ -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; } } }