mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02: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:
committed by
Ali Mohammad Pur
parent
ebe38639bc
commit
2c772d1848
Notes:
sideshowbarker
2024-07-18 17:21:50 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/2c772d18488 Pull-request: https://github.com/SerenityOS/serenity/pull/7468 Reviewed-by: https://github.com/alimpfard
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user