Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginSettings.cpp

Issue 11369200: Disable everywhere fix (Closed)
Patch Set: TogglePluginEnabled transfered to engine Created Aug. 20, 2013, 7:34 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/plugin/PluginSettings.h ('k') | src/shared/Communication.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginSettings.cpp
===================================================================
--- a/src/plugin/PluginSettings.cpp
+++ b/src/plugin/PluginSettings.cpp
@@ -187,15 +187,7 @@
void CPluginSettings::TogglePluginEnabled()
{
- GetPluginEnabled() ? SetPluginDisabled() : SetPluginEnabled();
-}
-void CPluginSettings::SetPluginDisabled()
-{
- CPluginClient::GetInstance()->SetPref(L"enabled", false);
-}
-void CPluginSettings::SetPluginEnabled()
-{
- CPluginClient::GetInstance()->SetPref(L"enabled", true);
+ CPluginClient::GetInstance()->TogglePluginEnabled();
}
bool CPluginSettings::GetPluginEnabled() const
{
« no previous file with comments | « src/plugin/PluginSettings.h ('k') | src/shared/Communication.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld