mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI: Make Window::set_title() take a String
This commit is contained in:
@@ -220,12 +220,12 @@ void Window::hide()
|
||||
}
|
||||
}
|
||||
|
||||
void Window::set_title(const StringView& title)
|
||||
void Window::set_title(String title)
|
||||
{
|
||||
m_title_when_windowless = title;
|
||||
m_title_when_windowless = move(title);
|
||||
if (!is_visible())
|
||||
return;
|
||||
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowTitle>(m_window_id, title);
|
||||
WindowServerConnection::the().send_sync<Messages::WindowServer::SetWindowTitle>(m_window_id, m_title_when_windowless);
|
||||
}
|
||||
|
||||
String Window::title() const
|
||||
|
||||
Reference in New Issue
Block a user