FullscreenUI: Fix missing window title with playlist

This commit is contained in:
Connor McLaughlin 2021-03-26 01:15:05 +10:00
parent 97682e09ab
commit 573aa6d9cc

View file

@ -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));
}
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));
}
//////////////////////////////////////////////////////////////////////////