Skip to content

Commit

Permalink
refactor: use more accurate name
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 16, 2024
1 parent dfd41e6 commit 3c4279e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/preferences_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ mod imp {
SETTINGS_PROFILE_CHANGED_HANDLER_ID_KEY,
settings.connect_profile_changed(
clone!(@weak list_item => move |settings| {
update_item_row_shows_warning_icon(settings, &list_item);
update_framerate_row_shows_warning_icon(settings, &list_item);
}),
),
);
}

update_item_row_shows_warning_icon(&settings, list_item);
update_framerate_row_shows_warning_icon(&settings, list_item);
}),
clone!(@strong settings => move |list_item| {
unsafe {
Expand Down Expand Up @@ -354,7 +354,7 @@ fn update_item_row_is_selected(row: &adw::ComboRow, list_item: &gtk::ListItem) {
item_row.set_is_selected(row.selected_item() == list_item.item());
}

fn update_item_row_shows_warning_icon(settings: &Settings, list_item: &gtk::ListItem) {
fn update_framerate_row_shows_warning_icon(settings: &Settings, list_item: &gtk::ListItem) {
let item_row = list_item.child().unwrap().downcast::<ItemRow>().unwrap();
let item = list_item.item().unwrap();

Expand Down

0 comments on commit 3c4279e

Please sign in to comment.