write in the qmlobj rootcontext, not global
use a private rootcontext for each wallpaper, or they would share config
This commit is contained in:
parent
34935428e8
commit
839dc2c3df
@ -150,7 +150,7 @@ void WallpaperInterface::syncWallpaperPackage()
|
||||
}
|
||||
|
||||
m_qmlObject->setSource(QUrl::fromLocalFile(m_pkg.filePath("mainscript")));
|
||||
m_qmlObject->engine()->rootContext()->setContextProperty("wallpaper", this);
|
||||
m_qmlObject->rootContext()->setContextProperty("wallpaper", this);
|
||||
|
||||
//initialize with our size to avoid as much resize events as possible
|
||||
QVariantHash props;
|
||||
|
Loading…
x
Reference in New Issue
Block a user