diff options
author | Cygnix Proto <99915288+CygnixProto@users.noreply.github.com> | 2022-12-06 16:26:13 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-14 18:25:28 +0000 |
commit | 806a55eda1d2e76c52fcea2ef11b81f2967b6e74 (patch) | |
tree | 21533574a8c71ac1a5af844319d2a0b1f8a853d3 /Userland/Services/Taskbar | |
parent | bdd9bc16ded4c55e5e479b2b2357afc99ce65da8 (diff) | |
download | serenity-806a55eda1d2e76c52fcea2ef11b81f2967b6e74.zip |
LibGfx+Userland: Make Gfx::SystemTheme propagate errors
This patch introduces error propagation to Gfx::SystemTheme to remove
instances of release_value_but_fixme_should_propagate_errors().
Userland applications that have been affected by this change have been
updated to utilise this propagation and as a result 4 such instances of
the aforementioned method have been removed.
Diffstat (limited to 'Userland/Services/Taskbar')
-rw-r--r-- | Userland/Services/Taskbar/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/Taskbar/main.cpp b/Userland/Services/Taskbar/main.cpp index 1dede77962..ed57f2ccc2 100644 --- a/Userland/Services/Taskbar/main.cpp +++ b/Userland/Services/Taskbar/main.cpp @@ -227,7 +227,7 @@ ErrorOr<NonnullRefPtr<GUI::Menu>> build_system_menu(GUI::Window& window) g_themes_menu = &system_menu->add_submenu("&Themes"); g_themes_menu->set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/themes.png"sv).release_value_but_fixme_should_propagate_errors()); - g_themes = Gfx::list_installed_system_themes(); + g_themes = TRY(Gfx::list_installed_system_themes()); auto current_theme_name = GUI::ConnectionToWindowServer::the().get_system_theme(); { |