Only show replay storage option in advanced view

This commit is contained in:
dec05eba
2025-05-21 23:41:52 +02:00
parent 043b6df255
commit a82d1a2dfc
2 changed files with 3 additions and 0 deletions

View File

@@ -200,6 +200,7 @@ namespace gsr {
RadioButton *turn_on_replay_automatically_mode_ptr = nullptr;
Subsection *audio_section_ptr = nullptr;
List *audio_track_section_list_ptr = nullptr;
List *replay_storage_list_ptr = nullptr;
PageStack *page_stack = nullptr;
};

View File

@@ -768,6 +768,7 @@ namespace gsr {
list->add_widget(std::move(replay_storage_button));
list->set_visible(gsr_info->system_info.gsr_version >= GsrVersion{5, 5, 0});
replay_storage_list_ptr = list.get();
return list;
}
@@ -836,6 +837,7 @@ namespace gsr {
notifications_subsection_ptr->set_visible(advanced_view);
set_application_audio_options_visible(audio_track_section_list_ptr, advanced_view, *gsr_info);
settings_scrollable_page_ptr->reset_scroll();
replay_storage_list_ptr->set_visible(advanced_view && gsr_info->system_info.gsr_version >= GsrVersion{5, 5, 0});
}
void SettingsPage::add_replay_widgets() {