From: Matthieu Gallien Date: Wed, 25 Sep 2024 09:37:20 +0000 (+0200) Subject: add seemingly needed qml import path X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~5^2~170^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=92f7247bc6e5c724ac6d0e858b77655da903d391;p=nextcloud-desktop.git add seemingly needed qml import path will hopefuly make the qml engine search inside install dir within qml sub folder Close #7156 Signed-off-by: Matthieu Gallien --- diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index 456e7e618..85fee594c 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -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);