summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-09-13 21:31:29 +0000
committerGitHub <noreply@github.com>2021-09-13 21:31:29 +0000
commit8e2f1e9dcefb3ea8b0706e0306fdb3a16796ce9c (patch)
treec90f73c51f8ddbe22d17d3d1d43f0a107360882f /src/MainWindow.cpp
parentUpdate translation files (diff)
parentStreamline getting other user id from invited direct chat (diff)
downloadnheko-8e2f1e9dcefb3ea8b0706e0306fdb3a16796ce9c.tar.xz
Merge pull request #416 from LorenDB/jdenticon
Add jdenticon support
Diffstat (limited to '')
-rw-r--r--src/MainWindow.cpp28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp

index 7eadc6df..b423304f 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp
@@ -16,6 +16,7 @@ #include "Cache_p.h" #include "ChatPage.h" #include "Config.h" +#include "JdenticonProvider.h" #include "Logging.h" #include "LoginPage.h" #include "MainWindow.h" @@ -152,10 +153,6 @@ MainWindow::MainWindow(QWidget *parent) showChatPage(); } }); - - if (loadJdenticonPlugin()) { - nhlog::ui()->info("loaded jdenticon."); - } } void @@ -428,29 +425,6 @@ MainWindow::showDialog(QWidget *dialog) dialog->show(); } -bool -MainWindow::loadJdenticonPlugin() -{ - QDir pluginsDir(qApp->applicationDirPath()); - - bool plugins = pluginsDir.cd("plugins"); - if (plugins) { - foreach (QString fileName, pluginsDir.entryList(QDir::Files)) { - QPluginLoader pluginLoader(pluginsDir.absoluteFilePath(fileName)); - QObject *plugin = pluginLoader.instance(); - if (plugin) { - jdenticonInteface_ = qobject_cast<JdenticonInterface *>(plugin); - if (jdenticonInteface_) { - nhlog::ui()->info("Found jdenticon plugin."); - return true; - } - } - } - } - - nhlog::ui()->info("jdenticon plugin not found."); - return false; -} void MainWindow::showWelcomePage() {