PCSX2-WX: Fix Shutdown menu item behavior

There is already a dedicated bind event to handle the gray out of the menu item, so let's just gray it out initially and let the bind event handler do it's thing.

The previous behavior would only gray out the menu item when all the plugins are in a non-active state which didn't seem ideal as the plugins were shutdown only when closing PCSX2 (or) switching plugins.
This commit is contained in:
Akash 2016-11-05 23:18:23 +05:30 committed by Jonathan Li
parent 259b81317d
commit f367fa5a98
1 changed files with 1 additions and 2 deletions

View File

@ -448,6 +448,7 @@ MainEmuFrame::MainEmuFrame(wxWindow* parent, const wxString& title)
m_menuSys.Append(MenuId_Sys_Shutdown, _("Shut&down"),
_("Wipes all internal VM states and shuts down plugins."));
m_menuSys.FindItem(MenuId_Sys_Shutdown)->Enable(false);
m_menuSys.Append(MenuId_Exit, _("E&xit"),
AddAppName(_("Closing %s may be hazardous to your health")));
@ -671,8 +672,6 @@ void MainEmuFrame::ApplyCoreStatus()
cdvd2->SetHelp(_("Use fast boot to skip PS2 startup and splash screens"));
}
}
menubar.Enable( MenuId_Sys_Shutdown, SysHasValidState() || CorePlugins.AreAnyInitialized() );
}
//Apply a config to the menu such that the menu reflects it properly