Qt/Debugger: Update the register view properly on pause and step
This commit is contained in:
parent
7388774f10
commit
daf8df951c
|
@ -7,6 +7,7 @@
|
||||||
#include "Core/Core.h"
|
#include "Core/Core.h"
|
||||||
#include "Core/HW/ProcessorInterface.h"
|
#include "Core/HW/ProcessorInterface.h"
|
||||||
#include "Core/PowerPC/PowerPC.h"
|
#include "Core/PowerPC/PowerPC.h"
|
||||||
|
#include "DolphinQt2/Host.h"
|
||||||
#include "DolphinQt2/QtUtils/ActionHelper.h"
|
#include "DolphinQt2/QtUtils/ActionHelper.h"
|
||||||
#include "DolphinQt2/Settings.h"
|
#include "DolphinQt2/Settings.h"
|
||||||
|
|
||||||
|
@ -30,15 +31,13 @@ RegisterWidget::RegisterWidget(QWidget* parent) : QDockWidget(parent)
|
||||||
PopulateTable();
|
PopulateTable();
|
||||||
ConnectWidgets();
|
ConnectWidgets();
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [this](Core::State state) {
|
connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, [this] {
|
||||||
if (Settings::Instance().IsDebugModeEnabled() && Core::GetState() == Core::State::Paused)
|
if (Settings::Instance().IsDebugModeEnabled() && Core::GetState() == Core::State::Paused)
|
||||||
emit RequestTableUpdate();
|
{
|
||||||
});
|
|
||||||
|
|
||||||
connect(this, &RegisterWidget::RequestTableUpdate, [this] {
|
|
||||||
m_updating = true;
|
m_updating = true;
|
||||||
emit UpdateTable();
|
emit UpdateTable();
|
||||||
m_updating = false;
|
m_updating = false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged,
|
connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged,
|
||||||
|
|
Loading…
Reference in New Issue