1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:07:45 +00:00

Browser: Convert search-engines file loading to Core::Stream :^)

Wrapped it in a method so we can take advantage of TRY(). I chose not to
make failure here stop the Browser process, but just to cancel loading
any more search engines.
This commit is contained in:
Sam Atkins 2022-01-20 11:17:17 +00:00 committed by Andreas Kling
parent 0b997b9d35
commit ad1f24ecb9
2 changed files with 87 additions and 68 deletions

View file

@ -41,6 +41,7 @@ private:
explicit BrowserWindow(CookieJar&, URL);
void build_menus();
ErrorOr<void> load_search_engines(GUI::Menu& settings_menu);
void set_window_title_for_tab(Tab const&);
RefPtr<GUI::Action> m_go_back_action;