Skip to content

Commit

Permalink
rename our Window component to MainWindow to not use an existing name
Browse files Browse the repository at this point in the history
we import QtQuick module that also define Window component name

to avoid any ambiguity, just use a different name on our side

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Sep 25, 2024
1 parent c67456b commit 97d1cfb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/systray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,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();
Expand Down
File renamed without changes.

0 comments on commit 97d1cfb

Please sign in to comment.