| Index: src/plugin/PluginClass.cpp |
| =================================================================== |
| --- a/src/plugin/PluginClass.cpp |
| +++ b/src/plugin/PluginClass.cpp |
| @@ -1128,10 +1128,19 @@ |
| CPluginSettings* settings = CPluginSettings::GetInstance(); |
| { |
| 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())) |
| + /* |
| + * The display state of the "disable on this site" menu item depends upon tab content |
| + */ |
| + if (!GetTab()->IsPossibleToDisableOnSite()) |
| { |
| + // Since we can't disable the present content, |
| + // it makes no sense to offer the user an option to block it. |
| + fmii.fState = MFS_UNCHECKED | MFS_DISABLED; |
|
Oleksandr
2015/12/17 12:59:38
If it is not possible to disable on site, it also
Eric
2015/12/17 13:40:39
The meaning of the check mark to me is "there is a
sergei
2015/12/21 10:26:23
I agree, it should be rather checked.
Eric
2015/12/21 13:11:41
Please feel free to bring up these points as comme
|
| + } |
| + else if (client->IsWhitelistedUrl(GetTab()->GetDocumentUrl())) |
| + { |
| + // Domain is in white list, indicated by a check mark |
| fmii.fState = MFS_CHECKED | MFS_ENABLED; |
| } |
| else |