From 32581966ae4e974e2d745318a3b9bd88e39b1e5a Mon Sep 17 00:00:00 2001 From: nuive <74248064+nuive@users.noreply.github.com> Date: Sun, 15 Oct 2023 04:18:05 +0200 Subject: [PATCH] Link: Fix menu not refreshing correctly Start Network Link is not allowed while Local mode is selected, but state change of Local mode was ignored until an option which triggers EnableNetworkMenu() was selected. Removed EnableNetworkMenu() from the Configuration option because it doesn't change anything related to Link menu state. --- src/wx/cmdevents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index a2b8136f..70157cba 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -2630,6 +2630,7 @@ EVT_HANDLER(LinkProto, "Local host IPC") { #ifndef NO_LINK GetMenuOptionConfig("LinkProto", config::OptionID::kGBALinkProto); + EnableNetworkMenu(); #endif } @@ -2643,7 +2644,6 @@ EVT_HANDLER(LinkConfigure, "Link options...") SetLinkTimeout(gopts.link_timeout); update_opts(); - EnableNetworkMenu(); #endif }