Merge pull request #10111 from JosJuice/networkwidget-hidden

DolphinQt: Don't update NetworkWidget when hidden
This commit is contained in:
JMC47 2021-09-18 09:33:45 -04:00 committed by GitHub
commit ca064b55fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -232,6 +232,9 @@ void NetworkWidget::ConnectWidgets()
void NetworkWidget::Update() void NetworkWidget::Update()
{ {
if (!isVisible())
return;
m_socket_table->setRowCount(0); m_socket_table->setRowCount(0);
for (u32 wii_fd = 0; wii_fd < IOS::HLE::WII_SOCKET_FD_MAX; wii_fd++) for (u32 wii_fd = 0; wii_fd < IOS::HLE::WII_SOCKET_FD_MAX; wii_fd++)
{ {