mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
Browser: Show an example url placeholder in the search engine InputBox
This makes it more clear what the format for a search engine url is :^)
This commit is contained in:
parent
72776b2f61
commit
2483a78313
Notes:
sideshowbarker
2024-07-18 10:14:32 +09:00
Author: https://github.com/networkException
Commit: 2483a78313
Pull-request: https://github.com/SerenityOS/serenity/pull/8498
Reviewed-by: https://github.com/MaxWipfli
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, Jakob-Niklas See <git@nwex.de>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -313,7 +314,7 @@ void BrowserWindow::build_menus()
|
|||
|
||||
auto custom_search_engine_action = GUI::Action::create_checkable("Custom", [&](auto& action) {
|
||||
String search_engine;
|
||||
if (GUI::InputBox::show(this, search_engine, "Enter URL template:", "Custom Search Engine") != GUI::InputBox::ExecOK || search_engine.is_empty()) {
|
||||
if (GUI::InputBox::show(this, search_engine, "Enter URL template:", "Custom Search Engine", "https://host/search?q={}") != GUI::InputBox::ExecOK || search_engine.is_empty()) {
|
||||
m_disable_search_engine_action->activate();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue