mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibGUI/AbstractView: Remove on_selection
Since the introduction of multi-select, we have had both `on_selection` and `on_selection_change`, the latter of which was only invoked when a change in selection came in through the model. This removes `AbstractView::on_selection` and replaces it usage with the more explicit `on_selection_change` everywhere.
This commit is contained in:
parent
ebe38639bc
commit
2c772d1848
Notes:
sideshowbarker
2024-07-18 17:21:50 +09:00
Author: https://github.com/gmta
Commit: 2c772d1848
Pull-request: https://github.com/SerenityOS/serenity/pull/7468
Reviewed-by: https://github.com/alimpfard
12 changed files with 36 additions and 25 deletions
|
@ -65,7 +65,8 @@ DebugInfoWidget::DebugInfoWidget()
|
|||
variables_tab_widget.add_widget("Variables", build_variables_tab());
|
||||
variables_tab_widget.add_widget("Registers", build_registers_tab());
|
||||
|
||||
m_backtrace_view->on_selection = [this](auto& index) {
|
||||
m_backtrace_view->on_selection_change = [this] {
|
||||
const auto& index = m_backtrace_view->selection().first();
|
||||
auto& model = static_cast<BacktraceModel&>(*m_backtrace_view->model());
|
||||
|
||||
// Note: The reconstruction of the register set here is obviously incomplete.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue