Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
fc9b7f0c
Verified
Commit
fc9b7f0c
authored
Apr 06, 2022
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
wallpapers/image/imagepackage/contents/ui/config.qml
View file @
fc9b7f0c
...
...
@@ -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
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment