Verified Commit fc9b7f0c authored by Fushan Wen's avatar Fushan Wen
Browse files

wallpapers/image: Break in setMethod

No need to continue loop after currentIndex is set.
parent 16ae8b9e
Pipeline #160223 passed with stage
in 5 minutes and 38 seconds
......@@ -128,8 +128,7 @@ ColumnLayout {
for (var i = 0; i < model.length; i++) {
if (model[i]["fillMode"] === root.cfg_FillMode) {
resizeComboBox.currentIndex = i;
var tl = model[i]["label"].length;
//resizeComboBox.textLength = Math.max(resizeComboBox.textLength, tl+5);
break;
}
}
}
......@@ -220,6 +219,7 @@ ColumnLayout {
for (var i = 0; i < model.length; i++) {
if (model[i]["slideshowMode"] === wallpaper.configuration.SlideshowMode) {
slideshowModeComboBox.currentIndex = i;
break;
}
}
}
......
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