Skip to content

Commit fc42f82

Browse files
committed
Show assembly view on jumpToPC
1 parent ba0be0a commit fc42f82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/gui/widgets/assembly.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ class Assembly : private Disasm {
4545
public:
4646
Assembly(bool& show, std::vector<std::string>& favorites)
4747
: m_show(show), m_listener(g_system->m_eventBus), m_symbolsFileDialog(l_("Load Symbols"), favorites) {
48-
m_listener.listen<Events::GUI::JumpToPC>([this](const auto& event) { m_jumpToPC = event.pc; });
48+
m_listener.listen<Events::GUI::JumpToPC>([this](const auto& event) {
49+
m_jumpToPC = event.pc;
50+
m_show = true;
51+
});
4952
memset(m_jumpAddressString, 0, sizeof(m_jumpAddressString));
5053
}
5154
bool draw(GUI* gui, psxRegisters* registers, Memory* memory, const char* title);

0 commit comments

Comments
 (0)