mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
DolphinQt: Don't update debug widgets when hidden
Saves on CPU usage when pausing/unpausing with the debugger disabled. This is especially important when using frame advance rapidly.
This commit is contained in:
@ -57,7 +57,6 @@ MemoryWidget::MemoryWidget(QWidget* parent) : QDockWidget(parent)
|
||||
LoadSettings();
|
||||
|
||||
ConnectWidgets();
|
||||
Update();
|
||||
OnAddressSpaceChanged();
|
||||
OnTypeChanged();
|
||||
}
|
||||
@ -258,8 +257,16 @@ void MemoryWidget::closeEvent(QCloseEvent*)
|
||||
Settings::Instance().SetMemoryVisible(false);
|
||||
}
|
||||
|
||||
void MemoryWidget::showEvent(QShowEvent* event)
|
||||
{
|
||||
Update();
|
||||
}
|
||||
|
||||
void MemoryWidget::Update()
|
||||
{
|
||||
if (!isVisible())
|
||||
return;
|
||||
|
||||
m_memory_view->Update();
|
||||
update();
|
||||
}
|
||||
|
Reference in New Issue
Block a user