mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
UI/Qt: Update placeholder text if search disabled
The placeholder text is there to prompt the user as to what could be added in the address bar. The current text tells the user that they can "Search or enter web address" even when the search setting is disabled. When attempting to "Search" the user is instead sent to page ":", with an error in the console: WebContent(575249): (FIXME) Don't know how to navigate to : This patch fixes this by checking whether the search feature is enabled and setting the placeholder appropriately. This provides a slightly better user experience. Closes #132
This commit is contained in:
parent
54183b8eef
commit
cb657a038f
Notes:
sideshowbarker
2024-07-19 16:48:57 +09:00
Author: https://github.com/hughdavenport 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/cb657a038f0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/133
@ -19,7 +19,10 @@ namespace Ladybird {
|
||||
LocationEdit::LocationEdit(QWidget* parent)
|
||||
: QLineEdit(parent)
|
||||
{
|
||||
if (Settings::the()->enable_search())
|
||||
setPlaceholderText("Search or enter web address");
|
||||
else
|
||||
setPlaceholderText("Enter web address");
|
||||
m_autocomplete = make<AutoComplete>(this);
|
||||
this->setCompleter(m_autocomplete);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user