fix(sdbclient): fix crash when spamming refresh
1 files changed, 5 insertions(+), 3 deletions(-) M sdbclient/src/plugins/menu/play/ui.rs
M sdbclient/src/plugins/menu/play/ui.rs => sdbclient/src/plugins/menu/play/ui.rs +5 -3
@@ 69,9 69,11 @@ pub(super) fn show( rtdmenu.play_menu_ui_state = PlayMenuUIState::CreateGame } if ui.button("Refresh Browse").clicked() { allforming_ev_w.send(AllFormingEvent); } ui.add_enabled_ui(!rtdmenu.waiting_for_all_forming_call, |ui| { if ui.button("Refresh Browse").clicked() { allforming_ev_w.send(AllFormingEvent); } }); if ui.button("Back").clicked() { commands.insert_resource(NextState(PlayMenuState::None));