mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 00:59:44 +00: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:
parent
0a7395bfba
commit
92a655c8b9
14 changed files with 108 additions and 32 deletions
|
@ -13,6 +13,7 @@ class QTableWidget;
|
|||
class QTableWidgetItem;
|
||||
class QToolBar;
|
||||
class QCloseEvent;
|
||||
class QShowEvent;
|
||||
|
||||
class WatchWidget : public QDockWidget
|
||||
{
|
||||
|
@ -27,6 +28,7 @@ signals:
|
|||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent*) override;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
private:
|
||||
void CreateWidgets();
|
||||
|
@ -35,6 +37,7 @@ private:
|
|||
void OnLoad();
|
||||
void OnSave();
|
||||
|
||||
void UpdateButtonsEnabled();
|
||||
void Update();
|
||||
|
||||
void ShowContextMenu();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue