mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
HackStudio: Make FindInFilesWidget reset when opening new project
Add method to FindInFilesWidget which resets the model in order to clear the output when needed, and use this when a new project is opened.
This commit is contained in:
committed by
Andreas Kling
parent
ff2a1ee8b0
commit
5ca888132d
Notes:
sideshowbarker
2024-07-18 05:24:00 +09:00
Author: https://github.com/donaghylennon Commit: https://github.com/SerenityOS/serenity/commit/5ca888132df Pull-request: https://github.com/SerenityOS/serenity/pull/9185 Reviewed-by: https://github.com/itamar8910 ✅
@@ -148,5 +148,9 @@ void FindInFilesWidget::focus_textbox_and_select_all()
|
||||
m_textbox->select_all();
|
||||
m_textbox->set_focus(true);
|
||||
}
|
||||
void FindInFilesWidget::reset()
|
||||
{
|
||||
m_result_view->set_model(nullptr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user