Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
GCompris
Commits
0f61d2d2
Commit
0f61d2d2
authored
Jun 09, 2020
by
Johnny Jazeix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
roman_numerals, force refresh when starting the activity (bar+layout)
parent
84a6754c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/activities/roman_numerals/RomanNumerals.qml
src/activities/roman_numerals/RomanNumerals.qml
+4
-3
No files found.
src/activities/roman_numerals/RomanNumerals.qml
View file @
0f61d2d2
...
...
@@ -64,7 +64,9 @@ ActivityBase {
property
string
instruction
:
dataset
[
currentLevel
].
instruction
property
string
questionValue
property
int
currentLevel
:
0
// we initialize it to -1, so on start() function,
// it forces a layout refresh when it's set to 0
property
int
currentLevel
:
-
1
property
int
numberOfLevel
:
dataset
.
length
property
var
dataset
:
[
...
...
@@ -187,7 +189,7 @@ ActivityBase {
}
function
nextLevel
()
{
if
(
numberOfLevel
-
1
==
currentLevel
)
{
if
(
numberOfLevel
-
1
==
currentLevel
)
{
currentLevel
=
0
}
else
{
currentLevel
++
...
...
@@ -506,6 +508,5 @@ ActivityBase {
onWin
:
items
.
isChecking
=
false
onLoose
:
items
.
isChecking
=
false
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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