Commit f3867eb3 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

desktoppackage: avoid loading wallpaper settings again when the plugin is changed

Only reload wallpaper settings when `wallpaperConfiguration` is invalid.

CCBUG: 407619

(cherry picked from commit 50f82b2d)
parent 123a4493
Pipeline #194015 failed with stage
in 1 minute and 59 seconds
......@@ -37,16 +37,12 @@ Item {
configDialog.containmentPlugin = appearanceRoot.containmentPlugin
* BUG 407619: `wallpaperGraphicsObject`, `wallpaper` or `wallpaperInterface`
* is not set before calling `ContainmentInterface::loadWallpaper()`, so wait
* until `wallpaperInterfaceChanged` signal is emitted. At that time
* `applyWallpaper()` will call `syncWallpaperObjects()` to update
* `wallpaperConfiguration`.
Connections {
// BUG 407619: wallpaperConfiguration can be invalid after changing layout
enabled: !configDialog.wallpaperConfiguration
target: Plasmoid.self
function onWallpaperInterfaceChanged() {
// wallpaperConfiguration is valid now, reload the settings
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment