From 4716c8ecf65c87cf4fd2e71dfcb00a4e15ff80fd Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 6 Sep 2015 12:38:07 +0200 Subject: [PATCH] DolphinWX: Little simplification for game right-click menu --- Source/Core/DolphinWX/GameListCtrl.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp index 248daeb09c..00f1be1e1b 100644 --- a/Source/Core/DolphinWX/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/GameListCtrl.cpp @@ -875,17 +875,14 @@ void CGameListCtrl::OnRightClick(wxMouseEvent& event) else if (selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".ciso" && selected_iso->GetFileName().substr(selected_iso->GetFileName().find_last_of(".")) != ".wbfs") 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")); changeDiscItem->Enable(Core::IsRunning()); } + if (platform == DiscIO::IVolume::WII_WAD) + popupMenu.Append(IDM_LIST_INSTALL_WAD, _("Install to Wii Menu")); + PopupMenu(&popupMenu); } }