mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
FullscreenUI: Fix missing window title with playlist
This commit is contained in:
parent
97682e09ab
commit
573aa6d9cc
|
@ -682,19 +682,23 @@ static void DoChangeDisc()
|
|||
options.emplace_back(System::GetMediaPlaylistPath(i), i == current_index);
|
||||
|
||||
auto callback = [](s32 index, const std::string& title, bool checked) {
|
||||
if (index < 0)
|
||||
return;
|
||||
if (index == 0)
|
||||
{
|
||||
CloseChoiceDialog();
|
||||
DoChangeDiscFromFile();
|
||||
return;
|
||||
}
|
||||
|
||||
else if (index > 0)
|
||||
{
|
||||
System::SwitchMediaFromPlaylist(static_cast<u32>(index - 1));
|
||||
}
|
||||
|
||||
ClearImGuiFocus();
|
||||
CloseChoiceDialog();
|
||||
ReturnToMainWindow();
|
||||
};
|
||||
|
||||
OpenChoiceDialog(ICON_FA_LIST, true, std::move(options), std::move(callback));
|
||||
OpenChoiceDialog(ICON_FA_COMPACT_DISC " Select Disc Image", true, std::move(options), std::move(callback));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue