| 216 | } |
| 217 | |
| 218 | void GM_Manager::enableScript(GM_Script* script) |
| 219 | { |
| 220 | script->setEnabled(true); |
| 221 | m_disabledScripts.removeOne(script->fullName()); |
| 222 | |
| 223 | if (script->startAt() == GM_Script::ContextMenu) { |
| 224 | m_contextMenuScripts.append(script); |
| 225 | } |
| 226 | else if (isEnabled()) { |
| 227 | QWebEngineScriptCollection *collection = mApp->webProfile()->scripts(); |
| 228 | collection->insert(script->webScript()); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | void GM_Manager::disableScript(GM_Script* script) |
| 233 | { |
no test coverage detected