Commit 0f1c6bd9 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.


(cherry picked from commit df461ae4)
parent f77565c9
Pipeline #160236 passed with stage
in 6 minutes and 50 seconds
...@@ -120,7 +120,7 @@ ColumnLayout { ...@@ -120,7 +120,7 @@ ColumnLayout {
] ]
textRole: "label" textRole: "label"
onCurrentIndexChanged: cfg_FillMode = model[currentIndex]["fillMode"] onActivated: cfg_FillMode = model[currentIndex]["fillMode"]
Component.onCompleted: setMethod(); Component.onCompleted: setMethod();
KCM.SettingHighlighter { KCM.SettingHighlighter {
...@@ -215,7 +215,7 @@ ColumnLayout { ...@@ -215,7 +215,7 @@ ColumnLayout {
} }
] ]
textRole: "label" textRole: "label"
onCurrentIndexChanged: { onActivated: {
cfg_SlideshowMode = model[currentIndex]["slideshowMode"]; cfg_SlideshowMode = model[currentIndex]["slideshowMode"];
} }
Component.onCompleted: setMethod(); 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