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:
parent
f1d1517414
commit
9f2a396c6e
2 changed files with 18 additions and 9 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue