Commit f72e2528 authored by Wescoeur's avatar Wescoeur

Revert "feat(App): add an import qml path for plugins"

This reverts commit e7c60ca3.
parent e7c60ca3
...@@ -142,7 +142,6 @@ inline void activeSplashScreen (QQmlApplicationEngine *engine) { ...@@ -142,7 +142,6 @@ inline void activeSplashScreen (QQmlApplicationEngine *engine) {
void App::initContentApp () { void App::initContentApp () {
shared_ptr<linphone::Config> config = ::getConfigIfExists(*mParser); shared_ptr<linphone::Config> config = ::getConfigIfExists(*mParser);
const QString pluginsPath = ::Utils::coreStringToAppString(Paths::getPluginsDirPath());
// Destroy qml components and linphone core if necessary. // Destroy qml components and linphone core if necessary.
if (mEngine) { if (mEngine) {
...@@ -168,7 +167,7 @@ void App::initContentApp () { ...@@ -168,7 +167,7 @@ void App::initContentApp () {
}); });
// Add plugins directory. // Add plugins directory.
addLibraryPath(pluginsPath); addLibraryPath(::Utils::coreStringToAppString(Paths::getPluginsDirPath()));
qInfo() << QStringLiteral("Library paths:") << libraryPaths(); qInfo() << QStringLiteral("Library paths:") << libraryPaths();
} }
...@@ -186,8 +185,6 @@ void App::initContentApp () { ...@@ -186,8 +185,6 @@ void App::initContentApp () {
mEngine->addImportPath(":/ui/modules"); mEngine->addImportPath(":/ui/modules");
mEngine->addImportPath(":/ui/scripts"); mEngine->addImportPath(":/ui/scripts");
mEngine->addImportPath(":/ui/views"); mEngine->addImportPath(":/ui/views");
mEngine->addImportPath(pluginsPath);
qInfo() << QStringLiteral("Engine import paths:") << mEngine->importPathList();
// Provide avatars/thumbnails providers. // Provide avatars/thumbnails providers.
mEngine->addImageProvider(AvatarProvider::PROVIDER_ID, new AvatarProvider()); mEngine->addImageProvider(AvatarProvider::PROVIDER_ID, new AvatarProvider());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment