mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
PixelPaint: Propagate errors when creating images or layers
This fixes a dozen release_value_but_fixme_should_propage_errors
This commit is contained in:
parent
25f2e4981c
commit
0ca1247a7f
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/Cnidarias 🔰
Commit: 0ca1247a7f
Pull-request: https://github.com/SerenityOS/serenity/pull/16559
Reviewed-by: https://github.com/AtkinsSJ
3 changed files with 54 additions and 24 deletions
|
@ -38,10 +38,10 @@ class MainWidget : public GUI::Widget {
|
|||
public:
|
||||
virtual ~MainWidget() {};
|
||||
|
||||
void initialize_menubar(GUI::Window&);
|
||||
ErrorOr<void> initialize_menubar(GUI::Window&);
|
||||
|
||||
void open_image(Core::File&);
|
||||
void create_default_image();
|
||||
ErrorOr<void> create_default_image();
|
||||
|
||||
bool request_close();
|
||||
|
||||
|
@ -50,7 +50,7 @@ private:
|
|||
|
||||
ImageEditor* current_image_editor();
|
||||
ImageEditor& create_new_editor(NonnullRefPtr<Image>);
|
||||
void create_image_from_clipboard();
|
||||
ErrorOr<void> create_image_from_clipboard();
|
||||
|
||||
void image_editor_did_update_undo_stack();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue