EffectLoader: Warn about trying to load an invalid effect

If the metadata of the effect is invalid, loadEffect will complain
rather than failing silently, making debugging issues a bit harder and
it's something that we are already checking for and shouldn't
realistically be happening.
wilder/Plasma/6.2
Aleix Pol 2 years ago
parent 5e94f5429a
commit 1ab5453a90
  1. 3
      src/effect/effectloader.cpp

@ -324,9 +324,6 @@ QStringList PluginEffectLoader::listOfKnownEffects() const
bool PluginEffectLoader::loadEffect(const QString &name)
{
const auto info = findEffect(name);
if (!info.isValid()) {
return false;
}
return loadEffect(info, LoadEffectFlag::Load);
}

Loading…
Cancel
Save