LibFileSystemAccessClient: Rename try_* functions to try_*_deprecated

These functions return the deprecated `Core::File` class, so let's mark
it as such to avoid possible confusion between future non try_*
functions which will use Core::Stream family classes and to possibly
grab someone's attention. :^)
This commit is contained in:
Karol Kosek 2022-12-17 00:58:13 +01:00 committed by Sam Atkins
commit 247db3fdd0
Notes: sideshowbarker 2024-07-17 02:01:26 +09:00
22 changed files with 38 additions and 38 deletions

View file

@ -211,7 +211,7 @@ void PDFViewerWidget::initialize_menubar(GUI::Window& window)
{
auto& file_menu = window.add_menu("&File");
file_menu.add_action(GUI::CommonActions::make_open_action([&](auto&) {
auto response = FileSystemAccessClient::Client::the().try_open_file(&window);
auto response = FileSystemAccessClient::Client::the().try_open_file_deprecated(&window);
if (!response.is_error())
open_file(*response.value());
}));