Skip to content

Commit

Permalink
add seemingly needed qml import path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mgallien committed Sep 25, 2024
1 parent 97d1cfb commit 92f7247
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/systray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 92f7247

Please sign in to comment.