mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 10:48:53 +00: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: cb657a038f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/133
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue