Revert "DolphinQt: Actually disable converting from TGC"
This reverts commit c236d89f64
.
This commit is contained in:
parent
75d032161f
commit
31ecc6c214
|
@ -254,18 +254,16 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||||
|
|
||||||
QMenu* menu = new QMenu(this);
|
QMenu* menu = new QMenu(this);
|
||||||
|
|
||||||
const auto can_convert = [](const std::shared_ptr<const UICommon::GameFile>& game) {
|
|
||||||
// Converting from TGC is temporarily disabled because PR #8738 was merged prematurely.
|
|
||||||
// The TGC check will be removed by PR #8644.
|
|
||||||
return DiscIO::IsDisc(game->GetPlatform()) && game->IsVolumeSizeAccurate() &&
|
|
||||||
game->GetBlobType() != DiscIO::BlobType::TGC;
|
|
||||||
};
|
|
||||||
|
|
||||||
if (HasMultipleSelected())
|
if (HasMultipleSelected())
|
||||||
{
|
{
|
||||||
const auto selected_games = GetSelectedGames();
|
const auto selected_games = GetSelectedGames();
|
||||||
|
|
||||||
if (std::all_of(selected_games.begin(), selected_games.end(), can_convert))
|
if (std::all_of(selected_games.begin(), selected_games.end(), [](const auto& game) {
|
||||||
|
// Converting from TGC is temporarily disabled because PR #8738 was merged prematurely.
|
||||||
|
// The TGC check will be removed by PR #8644.
|
||||||
|
return DiscIO::IsDisc(game->GetPlatform()) && game->IsVolumeSizeAccurate() &&
|
||||||
|
game->GetBlobType() != DiscIO::BlobType::TGC;
|
||||||
|
}))
|
||||||
{
|
{
|
||||||
menu->addAction(tr("Convert Selected Files..."), this, &GameList::ConvertFile);
|
menu->addAction(tr("Convert Selected Files..."), this, &GameList::ConvertFile);
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
|
@ -298,7 +296,7 @@ void GameList::ShowContextMenu(const QPoint&)
|
||||||
menu->addAction(tr("Set as &Default ISO"), this, &GameList::SetDefaultISO);
|
menu->addAction(tr("Set as &Default ISO"), this, &GameList::SetDefaultISO);
|
||||||
const auto blob_type = game->GetBlobType();
|
const auto blob_type = game->GetBlobType();
|
||||||
|
|
||||||
if (can_convert(game))
|
if (game->IsVolumeSizeAccurate())
|
||||||
menu->addAction(tr("Convert File..."), this, &GameList::ConvertFile);
|
menu->addAction(tr("Convert File..."), this, &GameList::ConvertFile);
|
||||||
|
|
||||||
QAction* change_disc = menu->addAction(tr("Change &Disc"), this, &GameList::ChangeDisc);
|
QAction* change_disc = menu->addAction(tr("Change &Disc"), this, &GameList::ChangeDisc);
|
||||||
|
|
Loading…
Reference in New Issue