From 2147ce8556fb8fcad4c0ff6ee8a493f9e928875b Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Mon, 6 Sep 2021 21:10:22 -0400 Subject: [PATCH] Only try loading plugin once --- src/JdenticonProvider.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/JdenticonProvider.cpp b/src/JdenticonProvider.cpp index c76e2b23..3b819c7c 100644 --- a/src/JdenticonProvider.cpp +++ b/src/JdenticonProvider.cpp @@ -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; } }