mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
Merge pull request #11790 from AdmiralCurtiss/network-widget-workaround
Qt/NetworkWidget: Don't update if not paused.
This commit is contained in:
@ -239,6 +239,16 @@ void NetworkWidget::Update()
|
|||||||
if (!isVisible())
|
if (!isVisible())
|
||||||
return;
|
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
|
// needed because there's a race condition on the IOS instance otherwise
|
||||||
Core::CPUThreadGuard guard(Core::System::GetInstance());
|
Core::CPUThreadGuard guard(Core::System::GetInstance());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user