mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
MemoryViewWidget: Reduce amount of unnecessary update calls.
This commit is contained in:
parent
9fc417b1d0
commit
965be2ab89
@ -99,7 +99,9 @@ public:
|
||||
void resizeEvent(QResizeEvent* event) override
|
||||
{
|
||||
QTableWidget::resizeEvent(event);
|
||||
m_view->CreateTable();
|
||||
// Remakes table if vertically resized
|
||||
const int rows = std::round((height() / static_cast<float>(rowHeight(0))) - 0.25);
|
||||
if (rows != rowCount())
|
||||
m_view->UpdateDisbatcher(MemoryViewWidget::UpdateType::Full);
|
||||
}
|
||||
|
||||
|
@ -66,9 +66,6 @@ MemoryWidget::MemoryWidget(Core::System& system, QWidget* parent)
|
||||
connect(&Settings::Instance(), &Settings::DebugModeToggled, this,
|
||||
[this](bool enabled) { setHidden(!enabled || !Settings::Instance().IsMemoryVisible()); });
|
||||
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, &MemoryWidget::Update);
|
||||
connect(Host::GetInstance(), &Host::UpdateDisasmDialog, this, &MemoryWidget::Update);
|
||||
|
||||
LoadSettings();
|
||||
|
||||
ConnectWidgets();
|
||||
|
Loading…
Reference in New Issue
Block a user