mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:27:34 +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
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