mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03:00
Presenter: Use the non-deprecated API of LibFileSystemAccessClient
The patch is tiny as Presenter is only using `LibFSAC` for its file picker. Using only `LibFSAC` in Presenter would be nice.
This commit is contained in:
parent
bfacbe1e0d
commit
667ac961b5
Notes:
sideshowbarker
2024-07-17 01:40:24 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/667ac961b5 Pull-request: https://github.com/SerenityOS/serenity/pull/17024
@ -56,10 +56,10 @@ ErrorOr<void> PresenterWidget::initialize_menubar()
|
||||
// Set up the menu bar.
|
||||
auto& file_menu = window->add_menu("&File");
|
||||
auto open_action = GUI::CommonActions::make_open_action([this](auto&) {
|
||||
auto response = FileSystemAccessClient::Client::the().try_open_file_deprecated(this->window());
|
||||
auto response = FileSystemAccessClient::Client::the().open_file(this->window());
|
||||
if (response.is_error())
|
||||
return;
|
||||
this->set_file(response.value()->filename());
|
||||
this->set_file(response.value().filename());
|
||||
});
|
||||
auto about_action = GUI::CommonActions::make_about_action("Presenter", GUI::Icon::default_icon("app-display-settings"sv));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user