| 151 | } |
| 152 | |
| 153 | void 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 | |
| 165 | void GM_Manager::unloadPlugin() |
| 166 | { |
nothing calls this directly
no test coverage detected