mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:27:36 +00:00
LibGUI+Userland: Rename try_load_from_gml()
-> load_from_gml()
:^)
It's the only one, so the `try` prefix is unnecessary now.
This commit is contained in:
parent
e4e12f3a96
commit
f0395a2042
85 changed files with 107 additions and 107 deletions
|
@ -42,7 +42,7 @@ BackgroundSettingsWidget::BackgroundSettingsWidget(bool& background_settings_cha
|
|||
|
||||
void BackgroundSettingsWidget::create_frame()
|
||||
{
|
||||
try_load_from_gml(background_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
load_from_gml(background_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_monitor_widget = *find_descendant_of_type_named<DisplaySettings::MonitorWidget>("monitor_widget");
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ DesktopSettingsWidget::DesktopSettingsWidget()
|
|||
|
||||
void DesktopSettingsWidget::create_frame()
|
||||
{
|
||||
try_load_from_gml(desktop_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
load_from_gml(desktop_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_workspace_rows_spinbox = *find_descendant_of_type_named<GUI::SpinBox>("workspace_rows_spinbox");
|
||||
m_workspace_rows_spinbox->on_change = [&](auto) {
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace DisplaySettings {
|
|||
|
||||
EffectsSettingsWidget::EffectsSettingsWidget()
|
||||
{
|
||||
try_load_from_gml(effects_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
load_from_gml(effects_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_geometry_combobox = find_descendant_of_type_named<ComboBox>("geometry_combobox");
|
||||
m_geometry_combobox->set_only_allow_values_from_model(true);
|
||||
|
|
|
@ -19,7 +19,7 @@ static void update_label_with_font(GUI::Label&, Gfx::Font const&);
|
|||
|
||||
FontSettingsWidget::FontSettingsWidget()
|
||||
{
|
||||
try_load_from_gml(font_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
load_from_gml(font_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
auto& default_font = Gfx::FontDatabase::default_font();
|
||||
m_default_font_label = *find_descendant_of_type_named<GUI::Label>("default_font_label");
|
||||
|
|
|
@ -71,7 +71,7 @@ void MonitorSettingsWidget::create_resolution_list()
|
|||
|
||||
void MonitorSettingsWidget::create_frame()
|
||||
{
|
||||
try_load_from_gml(monitor_settings_window_gml).release_value_but_fixme_should_propagate_errors();
|
||||
load_from_gml(monitor_settings_window_gml).release_value_but_fixme_should_propagate_errors();
|
||||
|
||||
m_monitor_widget = *find_descendant_of_type_named<DisplaySettings::MonitorWidget>("monitor_widget");
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace DisplaySettings {
|
|||
ThemesSettingsWidget::ThemesSettingsWidget(bool& background_settings_changed)
|
||||
: m_background_settings_changed { background_settings_changed }
|
||||
{
|
||||
try_load_from_gml(themes_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
load_from_gml(themes_settings_gml).release_value_but_fixme_should_propagate_errors();
|
||||
m_themes = MUST(Gfx::list_installed_system_themes());
|
||||
|
||||
size_t current_theme_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue