Debugger: Hide breakpoint and callstack list if unused (#12266)

This commit is contained in:
Elad Ashkenazi 2022-06-22 00:42:42 +03:00 committed by GitHub
parent ccb2724fc4
commit 69ceebeb05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View file

@ -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()