Only try loading plugin once

This commit is contained in:
Loren Burkholder 2021-09-06 21:10:22 -04:00
parent f14762e6a5
commit 2147ce8556
1 changed files with 3 additions and 1 deletions

View File

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