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

wallpapers/image: Use onActivated instead of onCurrentIndexChanged

This fixes sometimes the combobox is set to an incorrect index.
parent fc9b7f0c
Pipeline #160235 passed with stage
in 7 minutes and 35 seconds
......@@ -117,7 +117,7 @@ ColumnLayout {
]
textRole: "label"
onCurrentIndexChanged: cfg_FillMode = model[currentIndex]["fillMode"]
onActivated: cfg_FillMode = model[currentIndex]["fillMode"]
Component.onCompleted: setMethod();
KCM.SettingHighlighter {
......@@ -211,7 +211,7 @@ ColumnLayout {
}
]
textRole: "label"
onCurrentIndexChanged: {
onActivated: {
cfg_SlideshowMode = model[currentIndex]["slideshowMode"];
}
Component.onCompleted: setMethod();
......
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