diff --git a/ui/xui/main-menu.cc b/ui/xui/main-menu.cc index 238649d3e4..4c8f56233b 100644 --- a/ui/xui/main-menu.cc +++ b/ui/xui/main-menu.cc @@ -929,7 +929,9 @@ void MainMenuSnapshotsView::Draw() { Load(); SectionTitle("Snapshots"); - ImGui::Checkbox("Filter by current title", &g_config.general.snapshots.filter_current_game); + + Toggle("Filter by current title", &g_config.general.snapshots.filter_current_game); + ImGui::InputTextWithHint("##search", "Search...", &m_search_buf, ImGuiInputTextFlags_CallbackEdit, &MainMenuSnapshotsViewUpdateSearchBox, this); @@ -951,6 +953,7 @@ void MainMenuSnapshotsView::Draw() ImGui::SetTooltip("A snapshot with the name \"%s\" already exists. This button will overwrite the existing snapshot.", m_search_buf.c_str()); } + for (int i = m_snapshots_len - 1; i >= 0; i--) { if (g_config.general.snapshots.filter_current_game && m_extra_data[i].xbe_title_name && (strcmp(m_current_title_name, m_extra_data[i].xbe_title_name) != 0)) {