mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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:
parent
be28800e0d
commit
107e15c5bc
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/LucasChollet
Commit: 107e15c5bc
Pull-request: https://github.com/SerenityOS/serenity/pull/17332
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 6 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue