mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
259b81317d
commit
f367fa5a98
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue