mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Clean up WX style issues mentionned in previous commits comments
This commit is contained in:
@ -797,7 +797,7 @@ void CFrame::OnGameListCtrl_ItemActivated(wxListEvent& WXUNUSED (event))
|
|||||||
|
|
||||||
bool IsHotkey(wxKeyEvent &event, int Id)
|
bool IsHotkey(wxKeyEvent &event, int Id)
|
||||||
{
|
{
|
||||||
return (event.GetKeyCode() &&
|
return (event.GetKeyCode() != WXK_NONE &&
|
||||||
event.GetKeyCode() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkey[Id] &&
|
event.GetKeyCode() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkey[Id] &&
|
||||||
event.GetModifiers() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkeyModifier[Id]);
|
event.GetModifiers() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkeyModifier[Id]);
|
||||||
}
|
}
|
||||||
|
@ -669,7 +669,7 @@ void CFrame::DoOpen(bool Boot)
|
|||||||
wxFD_OPEN | wxFD_FILE_MUST_EXIST,
|
wxFD_OPEN | wxFD_FILE_MUST_EXIST,
|
||||||
this);
|
this);
|
||||||
|
|
||||||
if (path.empty())
|
if (path.IsEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
std::string currentDir2 = File::GetCurrentDir();
|
std::string currentDir2 = File::GetCurrentDir();
|
||||||
|
Reference in New Issue
Block a user