mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 13:30:31 +00:00
LibDesktop: Return the correct value in OpenUrl
This patch fixes a tiny issue where the result of open_url would always be true, since handle(OpenUrl) returns the message instead of the result.
This commit is contained in:
parent
358694567f
commit
21efd96c64
Notes:
sideshowbarker
2024-07-19 06:46:58 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/21efd96c64d Pull-request: https://github.com/SerenityOS/serenity/pull/2175
1 changed files with 2 additions and 2 deletions
|
@ -48,13 +48,13 @@ private:
|
|||
: IPC::ServerConnection<LaunchClientEndpoint, LaunchServerEndpoint>(*this, "/tmp/portal/launch")
|
||||
{
|
||||
}
|
||||
virtual void handle(const Messages::LaunchClient::Dummy&) override {}
|
||||
virtual void handle(const Messages::LaunchClient::Dummy&) override { }
|
||||
};
|
||||
|
||||
bool Launcher::open(const URL& url)
|
||||
{
|
||||
auto connection = LaunchServerConnection::construct();
|
||||
return connection->send_sync<Messages::LaunchServer::OpenUrl>(url.to_string());
|
||||
return connection->send_sync<Messages::LaunchServer::OpenUrl>(url.to_string())->response();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue