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
a7d49293
Commit
a7d49293
authored
Oct 14, 2019
by
Aleix Pol Gonzalez
🐧
Browse files
userfeedback kcm: fix qml type error
parent
42511d6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcms/feedback/package/contents/ui/main.qml
View file @
a7d49293
...
...
@@ -75,9 +75,17 @@ SimpleKCM {
stepSize
:
1
snapMode
:
QQC2
.
Slider
.
SnapAlways
function
findIndex
(
array
,
what
)
{
for
(
var
v
in
array
)
{
if
(
array
[
v
]
==
what
)
return
v
;
}
return
null
;
}
Component.onCompleted
:
{
var
idx
=
modeOptions
.
findIndex
(
kcm
.
plasmaFeedbackLevel
)
value
=
idx
<
0
?
2
:
modeOptions
[
idx
]
var
idx
=
findIndex
(
modeOptions
,
kcm
.
plasmaFeedbackLevel
)
value
=
idx
===
null
?
2
:
modeOptions
[
idx
]
}
onMoved
:
{
...
...
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