Commit 158d093c 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 474a000a
Pipeline #196422 passed with stage
in 5 minutes and 28 seconds
......@@ -112,6 +112,9 @@ Item {
textRole: "name"
onActivated: {
var model = configDialog.wallpaperConfigModel.get(currentIndex)
if (appearanceRoot.currentWallpaper === model.pluginName) {
return;
}
appearanceRoot.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