mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:57:35 +00:00
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:
parent
e361025cfb
commit
247db3fdd0
22 changed files with 38 additions and 38 deletions
|
@ -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());
|
||||
}));
|
||||
|
|
|
@ -47,7 +47,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
||||
if (file_path) {
|
||||
auto response = FileSystemAccessClient::Client::the().try_request_file_read_only_approved(window, file_path);
|
||||
auto response = FileSystemAccessClient::Client::the().try_request_file_read_only_approved_deprecated(window, file_path);
|
||||
if (response.is_error())
|
||||
return 1;
|
||||
pdf_viewer_widget->open_file(*response.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue