DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

3ebdb35e3ec1d6880db4a6b8d223cc2310bcb663 — Jonni Liljamo 1 year, 10 months ago 814931c
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));