mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
FileManager+LibGUI: Add a simple location textbox.
The widget layout here is a bit off and needs work.
This commit is contained in:
@@ -15,9 +15,11 @@ GTextBox::~GTextBox()
|
||||
{
|
||||
}
|
||||
|
||||
void GTextBox::set_text(String&& text)
|
||||
void GTextBox::set_text(const String& text)
|
||||
{
|
||||
m_text = move(text);
|
||||
if (m_text == text)
|
||||
return;
|
||||
m_text = text;
|
||||
m_cursor_position = m_text.length();
|
||||
update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user