mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:07:35 +00:00
DisplaySettings: Propagate errors in MonitorSettingsWidget
This commit is contained in:
parent
682bff4c49
commit
f1d1517414
2 changed files with 48 additions and 42 deletions
|
@ -21,6 +21,7 @@ class MonitorSettingsWidget final : public GUI::SettingsWindow::Tab {
|
|||
C_OBJECT(MonitorSettingsWidget);
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<MonitorSettingsWidget>> try_create();
|
||||
~MonitorSettingsWidget() override
|
||||
{
|
||||
if (m_showing_screen_numbers)
|
||||
|
@ -35,11 +36,11 @@ protected:
|
|||
void hide_event(GUI::HideEvent& event) override;
|
||||
|
||||
private:
|
||||
MonitorSettingsWidget();
|
||||
MonitorSettingsWidget() = default;
|
||||
|
||||
void create_frame();
|
||||
void create_resolution_list();
|
||||
void load_current_settings();
|
||||
ErrorOr<void> create_frame();
|
||||
ErrorOr<void> create_resolution_list();
|
||||
ErrorOr<void> load_current_settings();
|
||||
void selected_screen_index_or_resolution_changed();
|
||||
|
||||
size_t m_selected_screen_index { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue