From 667ac961b5d986ba48b372b614de09654925e4f1 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Sat, 14 Jan 2023 23:40:25 -0500 Subject: [PATCH] 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. --- Userland/Applications/Presenter/PresenterWidget.cpp | 4 ++-- 1 file 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 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));