diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2022-12-07 23:02:03 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-14 18:26:25 +0000 |
commit | 9ae97c8cb1f604ba06e61c5779e1a8a65c06f558 (patch) | |
tree | a3b4236e780d9746005f91a97554f49ef5598152 /Userland/Applications/PixelPaint/MainWidget.cpp | |
parent | c71fc0683f5b421bc994ff1b480c31680a6fc3fc (diff) | |
download | serenity-9ae97c8cb1f604ba06e61c5779e1a8a65c06f558.zip |
LibFileSystemAccessClient: Rename `try_save_file` =>
`try_save_file_deprecated`
This precedes the addition of a new api using `Core::Stream`
Diffstat (limited to 'Userland/Applications/PixelPaint/MainWidget.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/MainWidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/PixelPaint/MainWidget.cpp b/Userland/Applications/PixelPaint/MainWidget.cpp index 8898d9796b..76a918acda 100644 --- a/Userland/Applications/PixelPaint/MainWidget.cpp +++ b/Userland/Applications/PixelPaint/MainWidget.cpp @@ -212,7 +212,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) "As &BMP", [&](auto&) { auto* editor = current_image_editor(); VERIFY(editor); - auto response = FileSystemAccessClient::Client::the().try_save_file(&window, editor->title(), "bmp"); + auto response = FileSystemAccessClient::Client::the().try_save_file_deprecated(&window, editor->title(), "bmp"); if (response.is_error()) return; auto preserve_alpha_channel = GUI::MessageBox::show(&window, "Do you wish to preserve transparency?"sv, "Preserve transparency?"sv, GUI::MessageBox::Type::Question, GUI::MessageBox::InputType::YesNo); @@ -227,7 +227,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) auto* editor = current_image_editor(); VERIFY(editor); // TODO: fix bmp on line below? - auto response = FileSystemAccessClient::Client::the().try_save_file(&window, editor->title(), "png"); + auto response = FileSystemAccessClient::Client::the().try_save_file_deprecated(&window, editor->title(), "png"); if (response.is_error()) return; auto preserve_alpha_channel = GUI::MessageBox::show(&window, "Do you wish to preserve transparency?"sv, "Preserve transparency?"sv, GUI::MessageBox::Type::Question, GUI::MessageBox::InputType::YesNo); @@ -241,7 +241,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) "As &QOI", [&](auto&) { auto* editor = current_image_editor(); VERIFY(editor); - auto response = FileSystemAccessClient::Client::the().try_save_file(&window, editor->title(), "qoi"); + auto response = FileSystemAccessClient::Client::the().try_save_file_deprecated(&window, editor->title(), "qoi"); if (response.is_error()) return; auto result = editor->image().export_qoi_to_file(response.value()); @@ -410,7 +410,7 @@ void MainWidget::initialize_menubar(GUI::Window& window) })); m_edit_menu->add_action(GUI::Action::create( "Sa&ve Color Palette", g_icon_bag.save_color_palette, [&](auto&) { - auto response = FileSystemAccessClient::Client::the().try_save_file(&window, "untitled", "palette"); + auto response = FileSystemAccessClient::Client::the().try_save_file_deprecated(&window, "untitled", "palette"); if (response.is_error()) return; |