summaryrefslogtreecommitdiff
path: root/Userland/Applications/Presenter
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2023-01-14 23:40:25 -0500
committerAndreas Kling <kling@serenityos.org>2023-01-15 11:37:21 +0100
commit667ac961b5d986ba48b372b614de09654925e4f1 (patch)
tree04fc0cff6fca4337067ce1b834b92868b4a18897 /Userland/Applications/Presenter
parentbfacbe1e0dc08fc8f5ecd07a6ea972f396adf99b (diff)
downloadserenity-667ac961b5d986ba48b372b614de09654925e4f1.zip
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.
Diffstat (limited to 'Userland/Applications/Presenter')
-rw-r--r--Userland/Applications/Presenter/PresenterWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Presenter/PresenterWidget.cpp b/Userland/Applications/Presenter/PresenterWidget.cpp
index 66a6a5539b..83de69b6c6 100644
--- a/Userland/Applications/Presenter/PresenterWidget.cpp
+++ b/Userland/Applications/Presenter/PresenterWidget.cpp
@@ -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));