mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:47:35 +00:00
Ladybird: Remove the "home" icon from the toolbar (and the concept)
This feature isn't really that useful in practice, so let's remove it. (Other browsers haven't had this action for years either.)
This commit is contained in:
parent
f0f82c6391
commit
60312f2c83
7 changed files with 2 additions and 33 deletions
|
@ -106,9 +106,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
if (auto url = TRY(get_formatted_url(raw_url)); url.is_valid()) {
|
||||
window.view().load(url);
|
||||
} else if (!s_settings->homepage().isEmpty()) {
|
||||
auto home_url = TRY(ak_string_from_qstring(s_settings->homepage()));
|
||||
window.view().load(TRY(get_formatted_url(home_url.bytes_as_string_view())));
|
||||
} else {
|
||||
window.view().load("about:blank"sv);
|
||||
}
|
||||
|
||||
return event_loop.exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue