wallpapers/image: Use onActivated instead of onCurrentIndexChanged

This fixes sometimes the combobox is set to an incorrect index.
wilder-5.25
Fushan Wen 4 years ago
parent fc9b7f0c6a
commit df461ae414
No known key found for this signature in database
GPG Key ID: 2E48D1487C91DCAA
  1. 4
      wallpapers/image/imagepackage/contents/ui/config.qml

@ -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();

Loading…
Cancel
Save