PCSX2: Add keyboard shortcuts to memory card dialog right-click menu

This commit is contained in:
FlatOutPS2 2018-01-14 20:52:35 +01:00 committed by Jonathan Li
parent 1ad6fd8297
commit c749f961ef
1 changed files with 12 additions and 14 deletions

View File

@ -1016,29 +1016,27 @@ void Panels::MemoryCardListPanel_Simple::OnOpenItemContextMenu(wxListEvent& evt)
wxMenu* junk = new wxMenu();
if( idx != wxNOT_FOUND )
{
if (idx != wxNOT_FOUND) {
const McdSlotItem& card( GetCardForViewIndex(idx) );
if (card.IsPresent) {
junk->Append( McdMenuId_AssignUnassign, card.Slot>=0?_("Eject card"):_("Insert card ...") );
junk->Append( McdMenuId_Duplicate, _("Duplicate card ...") );
junk->Append( McdMenuId_Rename, _("Rename card ...") );
junk->Append( McdMenuId_Create, _("Delete card") );
junk->Append(McdMenuId_AssignUnassign, card.Slot>=0?_("&Eject card"):_("&Insert card ..."));
junk->Append(McdMenuId_Duplicate, _("D&uplicate card ..."));
junk->Append(McdMenuId_Rename, _("&Rename card ..."));
junk->Append(McdMenuId_Create, _("&Delete card"));
if (card.IsFormatted && !card.IsPSX) {
junk->Append( McdMenuId_Convert, _("Convert card") );
junk->Append(McdMenuId_Convert, _("&Convert card"));
}
} else {
junk->Append(McdMenuId_Create, _("&Create a new card ..."));
}
else
junk->Append( McdMenuId_Create, _("Create a new card ...") );
} else {
junk->Append(McdMenuId_Create, _("&Create a new card ..."));
}
else
junk->Append( McdMenuId_Create, _("Create a new card ...") );
junk->AppendSeparator();
junk->Append( McdMenuId_RefreshList, _("Refresh List") );
junk->Append(McdMenuId_RefreshList, _("Re&fresh List"));
PopupMenu( junk );
m_listview->RefreshItem( idx );