Merge pull request #4501 from flibitijibibo/disabletooltips
DolphinWX: Add 'DisableTooltips' config option (R2)
This commit is contained in:
commit
cd4449f881
|
@ -188,6 +188,7 @@ void SConfig::SaveInterfaceSettings(IniFile& ini)
|
||||||
interface->Set("ExtendedFPSInfo", m_InterfaceExtendedFPSInfo);
|
interface->Set("ExtendedFPSInfo", m_InterfaceExtendedFPSInfo);
|
||||||
interface->Set("ThemeName", theme_name);
|
interface->Set("ThemeName", theme_name);
|
||||||
interface->Set("PauseOnFocusLost", m_PauseOnFocusLost);
|
interface->Set("PauseOnFocusLost", m_PauseOnFocusLost);
|
||||||
|
interface->Set("DisableTooltips", m_DisableTooltips);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SConfig::SaveDisplaySettings(IniFile& ini)
|
void SConfig::SaveDisplaySettings(IniFile& ini)
|
||||||
|
@ -491,6 +492,7 @@ void SConfig::LoadInterfaceSettings(IniFile& ini)
|
||||||
interface->Get("ExtendedFPSInfo", &m_InterfaceExtendedFPSInfo, false);
|
interface->Get("ExtendedFPSInfo", &m_InterfaceExtendedFPSInfo, false);
|
||||||
interface->Get("ThemeName", &theme_name, DEFAULT_THEME_DIR);
|
interface->Get("ThemeName", &theme_name, DEFAULT_THEME_DIR);
|
||||||
interface->Get("PauseOnFocusLost", &m_PauseOnFocusLost, false);
|
interface->Get("PauseOnFocusLost", &m_PauseOnFocusLost, false);
|
||||||
|
interface->Get("DisableTooltips", &m_DisableTooltips, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SConfig::LoadDisplaySettings(IniFile& ini)
|
void SConfig::LoadDisplaySettings(IniFile& ini)
|
||||||
|
|
|
@ -292,6 +292,8 @@ struct SConfig : NonCopyable
|
||||||
|
|
||||||
bool m_PauseOnFocusLost;
|
bool m_PauseOnFocusLost;
|
||||||
|
|
||||||
|
bool m_DisableTooltips;
|
||||||
|
|
||||||
// DSP settings
|
// DSP settings
|
||||||
bool m_DSPEnableJIT;
|
bool m_DSPEnableJIT;
|
||||||
bool m_DSPCaptureLog;
|
bool m_DSPCaptureLog;
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <wx/msgdlg.h>
|
#include <wx/msgdlg.h>
|
||||||
#include <wx/thread.h>
|
#include <wx/thread.h>
|
||||||
#include <wx/timer.h>
|
#include <wx/timer.h>
|
||||||
|
#include <wx/tooltip.h>
|
||||||
#include <wx/utils.h>
|
#include <wx/utils.h>
|
||||||
#include <wx/window.h>
|
#include <wx/window.h>
|
||||||
|
|
||||||
|
@ -110,6 +111,8 @@ bool DolphinApp::OnInit()
|
||||||
|
|
||||||
DolphinAnalytics::Instance()->ReportDolphinStart("wx");
|
DolphinAnalytics::Instance()->ReportDolphinStart("wx");
|
||||||
|
|
||||||
|
wxToolTip::Enable(!SConfig::GetInstance().m_DisableTooltips);
|
||||||
|
|
||||||
// Enable the PNG image handler for screenshots
|
// Enable the PNG image handler for screenshots
|
||||||
wxImage::AddHandler(new wxPNGHandler);
|
wxImage::AddHandler(new wxPNGHandler);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue