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.
This commit is contained in:
nuive 2023-10-15 04:18:05 +02:00 committed by Rafael Kitover
parent 67af67278e
commit 32581966ae
1 changed files with 1 additions and 1 deletions

View File

@ -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
}