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
commit 65d2a6c590
No known key found for this signature in database
GPG key ID: 054DD3E6FF48DB71
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()); });