mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +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()
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue