mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Merge pull request #7206 from nextcloud/backport/7199/stable-3.14
[stable-3.14] Bugfix/startup qml on windows
This commit is contained in:
commit
0b31df678e
3 changed files with 5 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
|||
<file>src/gui/filedetails/ShareDetailsPage.qml</file>
|
||||
<file>src/gui/filedetails/ShareeSearchField.qml</file>
|
||||
<file>src/gui/filedetails/ShareView.qml</file>
|
||||
<file>src/gui/tray/Window.qml</file>
|
||||
<file>src/gui/tray/MainWindow.qml</file>
|
||||
<file>src/gui/tray/UserLine.qml</file>
|
||||
<file>src/gui/tray/HeaderButton.qml</file>
|
||||
<file>src/gui/tray/SyncStatus.qml</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);
|
||||
|
@ -119,7 +120,7 @@ void Systray::create()
|
|||
_trayEngine->rootContext()->setContextProperty("activityModel", &_fakeActivityModel);
|
||||
}
|
||||
|
||||
QQmlComponent trayWindowComponent(trayEngine(), QStringLiteral("qrc:/qml/src/gui/tray/Window.qml"));
|
||||
QQmlComponent trayWindowComponent(trayEngine(), QStringLiteral("qrc:/qml/src/gui/tray/MainWindow.qml"));
|
||||
|
||||
if(trayWindowComponent.isError()) {
|
||||
qCWarning(lcSystray) << trayWindowComponent.errorString();
|
||||
|
|
|
@ -12,9 +12,10 @@
|
|||
* for more details.
|
||||
*/
|
||||
|
||||
import QtQml
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Window
|
||||
import QtQuick.Layouts
|
||||
import Qt5Compat.GraphicalEffects
|
||||
import Qt.labs.platform as NativeDialogs
|
Loading…
Reference in a new issue