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

DisplaySettings: Propagate errors in MonitorWidget

This commit is contained in:
implicitfield 2023-03-17 14:32:12 +04:00 committed by Andreas Kling
parent f1d1517414
commit 9f2a396c6e
2 changed files with 18 additions and 9 deletions

View file

@ -11,9 +11,10 @@
namespace DisplaySettings {
class MonitorWidget final : public GUI::Widget {
C_OBJECT(MonitorWidget);
C_OBJECT_ABSTRACT(MonitorWidget);
public:
static ErrorOr<NonnullRefPtr<MonitorWidget>> try_create();
bool set_wallpaper(DeprecatedString path);
StringView wallpaper() const;
@ -32,7 +33,7 @@ public:
Gfx::Color background_color();
private:
MonitorWidget();
MonitorWidget() = default;
void redraw_desktop_if_needed();