ImGuiOverlays: Fix incorrect animation when opening state selector

This commit is contained in:
Stenzek 2024-01-31 00:23:51 +10:00
parent af2042e713
commit ad41c81fa8
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -740,8 +740,6 @@ void SaveStateSelectorUI::Open(float open_time /* = DEFAULT_OPEN_TIME */)
if (!s_placeholder_texture)
s_placeholder_texture = ImGuiFullscreen::LoadTexture("no-save.png");
s_scroll_animated.Reset(0.0f);
s_background_animated.Reset(0.0f);
s_open = true;
RefreshList(serial);
RefreshHotkeyLegend();
@ -808,6 +806,8 @@ void SaveStateSelectorUI::Clear()
s_current_slot = 0;
s_current_slot_global = false;
s_scroll_animated.Reset(0.0f);
s_background_animated.Reset(0.0f);
}
void SaveStateSelectorUI::ClearList()