Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
danngreen committed Dec 25, 2024
1 parent fd813a9 commit 6f79dab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions firmware/src/gui/pages/prefs_tab.hh
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ struct PrefsTab : SystemMenuTab {
get_index(AudioSettings::ValidBlockSizes, [this](auto t) { return t == audio_settings.block_size; });
lv_dropdown_set_selected(ui_SystemPrefsAudioBlocksizeDropdown, bs_item >= 0 ? bs_item : 1);

auto ovr_item =
get_index(AudioSettings::ValidOverrunRetries, [this](auto t) { return t == settings.max_overrun_retries; });
auto ovr_item = get_index(AudioSettings::ValidOverrunRetries,
[this](auto t) { return t == audio_settings.max_overrun_retries; });
lv_dropdown_set_selected(ui_SystemPrefsAudioOverrunRetriesDropdown, ovr_item >= 0 ? ovr_item : 1);

auto screensaver_item = get_index(ScreensaverSettings::ValidOptions,
Expand Down Expand Up @@ -232,8 +232,8 @@ struct PrefsTab : SystemMenuTab {
gui_state.do_write_settings = true;
}

if (settings.max_overrun_retries != max_overrun_retries) {
settings.max_overrun_retries = max_overrun_retries;
if (audio_settings.max_overrun_retries != max_overrun_retries) {
audio_settings.max_overrun_retries = max_overrun_retries;
gui_state.do_write_settings = true;
}

Expand Down

0 comments on commit 6f79dab

Please sign in to comment.