Only try loading plugin once

This commit is contained in:
Loren Burkholder 2021-09-06 21:10:22 -04:00
parent f14762e6a5
commit 2147ce8556

View file

@ -78,8 +78,9 @@ JdenticonInterface *
getJdenticonInterface() getJdenticonInterface()
{ {
static JdenticonInterface *interface = nullptr; static JdenticonInterface *interface = nullptr;
static bool interfaceExists{true};
if (interface == nullptr) { if (interface == nullptr && interfaceExists) {
QDir pluginsDir(qApp->applicationDirPath()); QDir pluginsDir(qApp->applicationDirPath());
bool plugins = pluginsDir.cd("plugins"); bool plugins = pluginsDir.cd("plugins");
@ -97,6 +98,7 @@ getJdenticonInterface()
} }
} else { } else {
nhlog::ui()->info("jdenticon plugin not found."); nhlog::ui()->info("jdenticon plugin not found.");
interfaceExists = false;
} }
} }