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:
parent
be28800e0d
commit
107e15c5bc
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