diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-04-23 21:48:13 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-04-23 21:48:23 +0200 |
| commit | 8a6118bec66f174c3563a0daf152de50fded24d0 (patch) | |
| tree | ea6340bce0699fc0120c0de632b1ae81ca986bb2 /Source/Core | |
| parent | ffbbd72741aa74d8bc602635ac9fdf9f9d0bb1bd (diff) | |
Qt/NetworkWidget: Don't update if not paused.
This is similar to https://github.com/dolphin-emu/dolphin/pull/11623 where the Core state change invoked by the CPUThreadGuard does indirectly cause another Update() call.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/NetworkWidget.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp b/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp index b9504e64ff..8f820dd68c 100644 --- a/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/NetworkWidget.cpp @@ -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()); |
