1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 02:47:34 +00:00

LibGUI: Base write_to_file(StringView path) on the stream overload

`write_to_file(StringView path)` was based on the `Core::File` overload.
The return type also changed from `bool` to `ErrorOr<void>` to ease
error propagation.
This commit is contained in:
Lucas CHOLLET 2023-01-15 00:30:51 -05:00 committed by Sam Atkins
parent be28800e0d
commit 107e15c5bc
3 changed files with 6 additions and 10 deletions

View file

@ -79,7 +79,7 @@ void EditorWrapper::save()
});
file_picker_action->activate();
}
editor().write_to_file(filename());
editor().write_to_file(filename()).release_value_but_fixme_should_propagate_errors();
update_diff();
editor().update();
}