MCPcopy Create free account
hub / github.com/KDE/falkon / enableScript

Method enableScript

src/plugins/GreaseMonkey/gm_manager.cpp:218–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void 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
232void GM_Manager::disableScript(GM_Script* script)
233{

Callers 1

itemChangedMethod · 0.80

Calls 6

fullNameMethod · 0.80
startAtMethod · 0.80
webProfileMethod · 0.80
insertMethod · 0.80
webScriptMethod · 0.80
setEnabledMethod · 0.45

Tested by

no test coverage detected