Merge pull request #4501 from flibitijibibo/disabletooltips

DolphinWX: Add 'DisableTooltips' config option (R2)
This commit is contained in:
Mat M 2016-12-20 17:20:24 -05:00 committed by GitHub
commit cd4449f881
3 changed files with 7 additions and 0 deletions

View File

@ -188,6 +188,7 @@ void SConfig::SaveInterfaceSettings(IniFile& ini)
interface->Set("ExtendedFPSInfo", m_InterfaceExtendedFPSInfo);
interface->Set("ThemeName", theme_name);
interface->Set("PauseOnFocusLost", m_PauseOnFocusLost);
interface->Set("DisableTooltips", m_DisableTooltips);
}
void SConfig::SaveDisplaySettings(IniFile& ini)
@ -491,6 +492,7 @@ void SConfig::LoadInterfaceSettings(IniFile& ini)
interface->Get("ExtendedFPSInfo", &m_InterfaceExtendedFPSInfo, false);
interface->Get("ThemeName", &theme_name, DEFAULT_THEME_DIR);
interface->Get("PauseOnFocusLost", &m_PauseOnFocusLost, false);
interface->Get("DisableTooltips", &m_DisableTooltips, false);
}
void SConfig::LoadDisplaySettings(IniFile& ini)

View File

@ -292,6 +292,8 @@ struct SConfig : NonCopyable
bool m_PauseOnFocusLost;
bool m_DisableTooltips;
// DSP settings
bool m_DSPEnableJIT;
bool m_DSPCaptureLog;

View File

@ -18,6 +18,7 @@
#include <wx/msgdlg.h>
#include <wx/thread.h>
#include <wx/timer.h>
#include <wx/tooltip.h>
#include <wx/utils.h>
#include <wx/window.h>
@ -110,6 +111,8 @@ bool DolphinApp::OnInit()
DolphinAnalytics::Instance()->ReportDolphinStart("wx");
wxToolTip::Enable(!SConfig::GetInstance().m_DisableTooltips);
// Enable the PNG image handler for screenshots
wxImage::AddHandler(new wxPNGHandler);