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

Browser+BrowserSettings: Add preference for new tab

This commit is contained in:
Xexxa 2022-06-25 21:08:17 +02:00 committed by Linus Groh
parent ef46100fd3
commit 6571455499
6 changed files with 58 additions and 10 deletions

View file

@ -100,7 +100,7 @@ BrowserWindow::BrowserWindow(CookieJar& cookie_jar, URL url)
};
m_window_actions.on_create_new_tab = [this] {
create_new_tab(Browser::url_from_user_input(Browser::g_home_url), true);
create_new_tab(Browser::url_from_user_input(Browser::g_new_tab_url), true);
};
m_window_actions.on_next_tab = [this] {
@ -606,6 +606,8 @@ void BrowserWindow::config_string_did_change(String const& domain, String const&
Browser::g_search_engine = value;
else if (key == "Home")
Browser::g_home_url = value;
else if (key == "NewTab")
Browser::g_new_tab_url = value;
} else if (group.starts_with("Proxy:")) {
dbgln("Proxy mapping changed: {}/{} = {}", group, key, value);
auto proxy_spec = group.substring_view(6);