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

Method unloadScripts

src/plugins/GreaseMonkey/gm_manager.cpp:153–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void GM_Manager::unloadScripts()
154{
155 QWebEngineScriptCollection *collection = mApp->webProfile()->scripts();
156
157 for (const auto &gmScript : std::as_const(m_scripts)) {
158 const auto scripts = collection->find(gmScript->fullName());
159 for (const auto &script : scripts) {
160 collection->remove(script);
161 }
162 }
163}
164
165void GM_Manager::unloadPlugin()
166{

Callers

nothing calls this directly

Calls 4

webProfileMethod · 0.80
findMethod · 0.80
fullNameMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected