mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Only try loading plugin once
This commit is contained in:
parent
f14762e6a5
commit
2147ce8556
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue