mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-28 14:20:30 +00:00
FullscreenUI: Fix animation glitch on choice select
This commit is contained in:
parent
a8db46a6b8
commit
d37048e4e4
@ -2923,10 +2923,10 @@ void ImGuiFullscreen::ChoiceDialog::Draw()
|
||||
// because the callback may open another dialog, and we don't want to close that one.
|
||||
if (!m_checkable)
|
||||
{
|
||||
const ChoiceDialogOptions options = std::exchange(m_options, ChoiceDialogOptions());
|
||||
const auto selected = m_options[choice];
|
||||
const ChoiceDialogCallback callback = std::exchange(m_callback, ChoiceDialogCallback());
|
||||
StartClose();
|
||||
callback(choice, options[choice].first, options[choice].second);
|
||||
callback(choice, selected.first, selected.second);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user