Skip to content

Commit e6f10a8

Browse files
committed
fix: swap order of setDialogContent and toggleDialog in bluetooth event handler to prevent UI flickering
1 parent ea26c19 commit e6f10a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ function NavBar({ layoutref }: NavBarProps) {
299299
});
300300

301301
AppMgr.getInstance().on(EventType.EVENT_HIDE_BLUETOOTH_CONNECTING, () => {
302-
toggleDialog();
303302
setDialogContent(<div />);
303+
toggleDialog();
304304
});
305305

306306
hasSubscribed = true;

0 commit comments

Comments
 (0)