Merge pull request #6095 from JosJuice/disable-eject-disc

Disable "Eject Disc" when emulation is not running
This commit is contained in:
Anthony 2017-10-03 10:24:34 -07:00 committed by GitHub
commit 63b11be27a
1 changed files with 1 additions and 0 deletions

View File

@ -1600,6 +1600,7 @@ void CFrame::UpdateGUI()
GetMenuBar()->FindItem(IDM_SAVE_STATE)->Enable(Initialized);
// Misc
GetMenuBar()->FindItem(IDM_CHANGE_DISC)->Enable(Initialized);
GetMenuBar()->FindItem(IDM_EJECT_DISC)->Enable(Initialized);
GetMenuBar()
->FindItem(IDM_LOAD_GC_IPL_JAP)
->Enable(!Initialized && File::Exists(SConfig::GetInstance().GetBootROMPath(JAP_DIR)));