mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
DisplaySettings: Use absolute path for loading mouse settings icon
This patch fixes DisplaySettings crashing when launching it from a non root working directory.
This commit is contained in:
parent
c9b363de56
commit
621349ed14
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ ThemesSettingsWidget::ThemesSettingsWidget(bool& background_settings_changed)
|
|||
};
|
||||
m_themes_combo->set_selected_index(current_theme_index, GUI::AllowCallback::No);
|
||||
|
||||
auto mouse_settings_icon = Gfx::Bitmap::try_load_from_file("res/icons/16x16/app-mouse.png").release_value_but_fixme_should_propagate_errors();
|
||||
auto mouse_settings_icon = Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-mouse.png").release_value_but_fixme_should_propagate_errors();
|
||||
m_cursor_themes_button = *find_descendant_of_type_named<GUI::Button>("cursor_themes_button");
|
||||
m_cursor_themes_button->set_icon(mouse_settings_icon);
|
||||
m_cursor_themes_button->on_click = [&](auto) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue