fix: main screen switching
This commit is contained in:
parent
561b1ce0ac
commit
03f44ef7be
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ void DesktopView::onPrimaryScreenChanged(QScreen *screen)
|
||||||
{
|
{
|
||||||
bool isPrimaryScreen = m_screen->name() == screen->name();
|
bool isPrimaryScreen = m_screen->name() == screen->name();
|
||||||
|
|
||||||
|
onGeometryChanged();
|
||||||
|
|
||||||
setSource(isPrimaryScreen ? QStringLiteral("qrc:/qml/Desktop/Main.qml")
|
setSource(isPrimaryScreen ? QStringLiteral("qrc:/qml/Desktop/Main.qml")
|
||||||
: QStringLiteral("qrc:/qml/Desktop/Wallpaper.qml"));
|
: QStringLiteral("qrc:/qml/Desktop/Wallpaper.qml"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue