add seemingly needed qml import path
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 25 Sep 2024 09:37:20 +0000 (11:37 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 25 Sep 2024 14:43:04 +0000 (16:43 +0200)
will hopefuly make the qml engine search inside install dir within qml
sub folder

Close #7156

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/systray.cpp

index 456e7e618dcbbfcc3e40267a964dc288736ff844..85fee594c9f7b8bc0bc5f0bac78bd852c8ea3d06 100644 (file)
@@ -70,6 +70,7 @@ void Systray::setTrayEngine(QQmlApplicationEngine *trayEngine)
 
     _trayEngine->setNetworkAccessManagerFactory(&_accessManagerFactory);
 
+    _trayEngine->addImportPath(QCoreApplication::applicationDirPath() + "/qml");
     _trayEngine->addImportPath("qrc:/qml/theme");
     _trayEngine->addImageProvider("avatars", new ImageProvider);
     _trayEngine->addImageProvider(QLatin1String("svgimage-custom-color"), new OCC::Ui::SvgImageProvider);