Qt/debugger: properly update when we load the symbols on boot

This host event is still useful because the emu thread will load the symbols on boot if required.
This commit is contained in:
aldelaro5
2018-05-16 21:43:18 -04:00
parent 5b96abf7aa
commit 65d2a6c590
3 changed files with 14 additions and 3 deletions

View File

@ -45,6 +45,8 @@ CodeWidget::CodeWidget(QWidget* parent) : QDockWidget(parent)
Update();
});
connect(Host::GetInstance(), &Host::NotifyMapLoaded, this, &CodeWidget::UpdateSymbols);
connect(&Settings::Instance(), &Settings::DebugModeToggled,
[this](bool enabled) { setHidden(!enabled || !Settings::Instance().IsCodeVisible()); });