1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

Spreadsheet: Use ByteString for file paths

This commit is contained in:
Sam Atkins 2024-01-23 16:26:43 +00:00 committed by Sam Atkins
parent 44ca55aaf8
commit 90240c0e02
7 changed files with 26 additions and 26 deletions

View file

@ -71,7 +71,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (!filename.is_empty()) {
auto file = TRY(FileSystemAccessClient::Client::the().request_file_read_only_approved(window, filename));
spreadsheet_widget->load_file(TRY(String::from_byte_string(file.filename())), file.stream());
spreadsheet_widget->load_file(file.filename(), file.stream());
}
return app->exec();