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

Unified Diff: src/plugin/PluginClass.cpp

Issue 29332455: Issue #1596, #1720 - Make status bar menu consistent with plugin abilities (Closed)
Patch Set: Created Dec. 8, 2015, 6:58 p.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 | « no previous file | src/plugin/PluginTabBase.h » ('j') | src/plugin/PluginTabBase.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginClass.cpp
===================================================================
--- a/src/plugin/PluginClass.cpp
+++ b/src/plugin/PluginClass.cpp
@@ -1130,7 +1130,11 @@
ctext = dictionary->Lookup("menu", "menu-disable-on-site");
// Is domain in white list?
ReplaceString(ctext, L"?1?", client->GetHostFromUrl(url));
- if (client->IsWhitelistedUrl(GetTab()->GetDocumentUrl()))
+ if (!GetTab()->CanDisableOnSite())
+ {
+ fmii.fState = MFS_UNCHECKED | MFS_DISABLED;
+ }
+ else if (client->IsWhitelistedUrl(GetTab()->GetDocumentUrl()))
{
fmii.fState = MFS_CHECKED | MFS_ENABLED;
}
« no previous file with comments | « no previous file | src/plugin/PluginTabBase.h » ('j') | src/plugin/PluginTabBase.h » ('J')

Powered by Google App Engine
This is Rietveld