mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
DolphinWX: Little simplification for game right-click menu
This commit is contained in:
parent
cb3b1b6f44
commit
4716c8ecf6
1 changed files with 4 additions and 7 deletions
|
@ -875,17 +875,14 @@ void CGameListCtrl::OnRightClick(wxMouseEvent& event)
|
||||||
else if (selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".ciso" &&
|
else if (selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".ciso" &&
|
||||||
selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".wbfs")
|
selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".wbfs")
|
||||||
popupMenu.Append(IDM_COMPRESS_ISO, _("Compress ISO..."));
|
popupMenu.Append(IDM_COMPRESS_ISO, _("Compress ISO..."));
|
||||||
}
|
|
||||||
if (platform == DiscIO::IVolume::WII_WAD)
|
|
||||||
{
|
|
||||||
popupMenu.Append(IDM_LIST_INSTALL_WAD, _("Install to Wii Menu"));
|
|
||||||
}
|
|
||||||
if (platform == DiscIO::IVolume::GAMECUBE_DISC || platform == DiscIO::IVolume::WII_DISC)
|
|
||||||
{
|
|
||||||
wxMenuItem* changeDiscItem = popupMenu.Append(IDM_LIST_CHANGE_DISC, _("Change &Disc"));
|
wxMenuItem* changeDiscItem = popupMenu.Append(IDM_LIST_CHANGE_DISC, _("Change &Disc"));
|
||||||
changeDiscItem->Enable(Core::IsRunning());
|
changeDiscItem->Enable(Core::IsRunning());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (platform == DiscIO::IVolume::WII_WAD)
|
||||||
|
popupMenu.Append(IDM_LIST_INSTALL_WAD, _("Install to Wii Menu"));
|
||||||
|
|
||||||
PopupMenu(&popupMenu);
|
PopupMenu(&popupMenu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue