mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
DisplaySettings: Propagate errors in BackgroundSettingsWidget
This commit is contained in:
parent
c95ec6092b
commit
1c20cf7bee
2 changed files with 29 additions and 15 deletions
|
@ -19,9 +19,10 @@
|
|||
namespace DisplaySettings {
|
||||
|
||||
class BackgroundSettingsWidget : public GUI::SettingsWindow::Tab {
|
||||
C_OBJECT(BackgroundSettingsWidget);
|
||||
C_OBJECT_ABSTRACT(BackgroundSettingsWidget);
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<BackgroundSettingsWidget>> try_create(bool& background_settings_changed);
|
||||
virtual ~BackgroundSettingsWidget() override = default;
|
||||
|
||||
virtual void apply_settings() override;
|
||||
|
@ -29,8 +30,8 @@ public:
|
|||
private:
|
||||
BackgroundSettingsWidget(bool& background_settings_changed);
|
||||
|
||||
void create_frame();
|
||||
void load_current_settings();
|
||||
ErrorOr<void> create_frame();
|
||||
ErrorOr<void> load_current_settings();
|
||||
|
||||
Vector<DeprecatedString> m_modes;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue