Merge pull request #11790 from AdmiralCurtiss/network-widget-workaround

Qt/NetworkWidget: Don't update if not paused.
This commit is contained in:
Léo Lam 2023-04-25 01:07:42 +01:00 committed by GitHub
commit ba150a6824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -239,6 +239,16 @@ void NetworkWidget::Update()
if (!isVisible())
return;
if (Core::GetState() != Core::State::Paused)
{
m_socket_table->setDisabled(true);
m_ssl_table->setDisabled(true);
return;
}
m_socket_table->setDisabled(false);
m_ssl_table->setDisabled(false);
// needed because there's a race condition on the IOS instance otherwise
Core::CPUThreadGuard guard(Core::System::GetInstance());