Verified Commit 900ad5cf authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

desktoppackage: enable Apply button only after the wallpaper plugin is changed

Selecting the same wallpaper plugin should not enable the apply button.

(cherry picked from commit c965458e)
parent 988fe02d
Pipeline #196429 failed with stage
in 2 minutes and 51 seconds
......@@ -116,6 +116,9 @@ AbstractKCM {
textRole: "name"
onActivated: {
var model = configDialog.wallpaperConfigModel.get(currentIndex)
if (root.currentWallpaper === model.pluginName) {
return;
}
root.currentWallpaper = model.pluginName
configDialog.currentWallpaper = model.pluginName
main.sourceFile = model.source
......
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