mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
LibLine: Remove unnecessary use of EventReceiver parent/child API
This commit is contained in:
parent
b8357bc190
commit
045eaa1576
Notes:
github-actions[bot]
2025-08-11 14:57:36 +00:00
Author: https://github.com/awesomekling
Commit: 045eaa1576
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5817
Reviewed-by: https://github.com/gmta ✅
1 changed files with 0 additions and 2 deletions
|
@ -309,7 +309,6 @@ void Editor::enter_search()
|
|||
|
||||
m_search_editor = Editor::construct(Configuration { Configuration::Eager, Configuration::NoSignalHandlers }); // Has anyone seen 'Inception'?
|
||||
m_search_editor->initialize();
|
||||
add_child(*m_search_editor);
|
||||
|
||||
m_search_editor->on_display_refresh = [this](Editor& search_editor) {
|
||||
// Remove the search editor prompt before updating ourselves (this avoids artifacts when we move the search editor around).
|
||||
|
@ -402,7 +401,6 @@ void Editor::enter_search()
|
|||
// Grab where the search origin last was, anything up to this point will be cleared.
|
||||
auto search_end_row = m_search_editor->m_origin_row;
|
||||
|
||||
remove_child(*m_search_editor);
|
||||
m_search_editor = nullptr;
|
||||
m_is_searching = false;
|
||||
m_is_editing = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue