mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:07:47 +00:00
LibFileSystemAccessClient+Userland: Return file paths as ByteStrings
Where it was straightforward to do so, I've updated the users to also use ByteStrings for their file paths, but most of them have a temporary String::from_byte_string() call instead.
This commit is contained in:
parent
5a99a6afb4
commit
44ca55aaf8
23 changed files with 50 additions and 53 deletions
|
@ -776,7 +776,7 @@ void ImageEditor::save_project_as()
|
|||
GUI::MessageBox::show_error(window(), MUST(String::formatted("Could not save {}: {}", file.filename(), result.release_error())));
|
||||
return;
|
||||
}
|
||||
set_path(file.filename().to_byte_string());
|
||||
set_path(file.filename());
|
||||
set_loaded_from_image(false);
|
||||
set_unmodified();
|
||||
}
|
||||
|
|
|
@ -1304,11 +1304,11 @@ void MainWidget::open_image(FileSystemAccessClient::File file)
|
|||
auto& image = *m_loader.release_image();
|
||||
auto& editor = create_new_editor(image);
|
||||
editor.set_loaded_from_image(m_loader.is_raw_image());
|
||||
editor.set_path(file.filename().to_byte_string());
|
||||
editor.set_path(file.filename());
|
||||
editor.set_unmodified();
|
||||
m_layer_list_widget->set_image(&image);
|
||||
m_toolbox->ensure_tool_selection();
|
||||
GUI::Application::the()->set_most_recently_open_file(file.filename().to_byte_string());
|
||||
GUI::Application::the()->set_most_recently_open_file(file.filename());
|
||||
}
|
||||
|
||||
ErrorOr<void> MainWidget::create_default_image()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue