mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
Debugger: Hide breakpoint and callstack list if unused (#12266)
This commit is contained in:
parent
ccb2724fc4
commit
69ceebeb05
3 changed files with 22 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ call_stack_list::call_stack_list(QWidget* parent) : QListWidget(parent)
|
|||
|
||||
// connects
|
||||
connect(this, &QListWidget::itemDoubleClicked, this, &call_stack_list::OnCallStackListDoubleClicked);
|
||||
|
||||
// Hide until used in order to allow as much space for registers panel as possible
|
||||
hide();
|
||||
}
|
||||
|
||||
void call_stack_list::HandleUpdate(const std::vector<std::pair<u32, u32>>& call_stack)
|
||||
|
|
@ -25,6 +28,8 @@ void call_stack_list::HandleUpdate(const std::vector<std::pair<u32, u32>>& call_
|
|||
call_stack_item->setData(Qt::UserRole, { addr.first });
|
||||
addItem(call_stack_item);
|
||||
}
|
||||
|
||||
setVisible(!call_stack.empty());
|
||||
}
|
||||
|
||||
void call_stack_list::OnCallStackListDoubleClicked()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue