summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-27 17:37:00 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-28 08:10:53 +0100
commit45844f933845c203fd8aa2a31022ea917f231407 (patch)
treecf79b3b20b63a74592e95a7810e04cc8961a59a9 /Userland/Applications/DisplaySettings
parent7c19e86a5023ee50d78b95d0d70749168f883e1c (diff)
downloadserenity-45844f933845c203fd8aa2a31022ea917f231407.zip
LibGUI: Make GUI::SettingsWindow::add_tab() return ErrorOr
This allows us to use TRY() when creating settings UI.
Diffstat (limited to 'Userland/Applications/DisplaySettings')
-rw-r--r--Userland/Applications/DisplaySettings/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/DisplaySettings/main.cpp b/Userland/Applications/DisplaySettings/main.cpp
index fbfd8490b2..66ac660196 100644
--- a/Userland/Applications/DisplaySettings/main.cpp
+++ b/Userland/Applications/DisplaySettings/main.cpp
@@ -27,10 +27,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app_icon = GUI::Icon::default_icon("app-display-settings");
auto window = TRY(GUI::SettingsWindow::try_create("Display Settings"));
- window->add_tab<DisplaySettings::BackgroundSettingsWidget>("Background");
- window->add_tab<DisplaySettings::FontSettingsWidget>("Fonts");
- window->add_tab<DisplaySettings::MonitorSettingsWidget>("Monitor");
- window->add_tab<DisplaySettings::DesktopSettingsWidget>("Workspaces");
+ TRY(window->add_tab<DisplaySettings::BackgroundSettingsWidget>("Background"));
+ TRY(window->add_tab<DisplaySettings::FontSettingsWidget>("Fonts"));
+ TRY(window->add_tab<DisplaySettings::MonitorSettingsWidget>("Monitor"));
+ TRY(window->add_tab<DisplaySettings::DesktopSettingsWidget>("Workspaces"));
window->set_icon(app_icon.bitmap_for_size(16));