Commit 58c7555c authored by Timothée Giet's avatar Timothée Giet

gletters, reversecount, smallnumbers2, traffic, wordsgame, fix empty combobox with default config

parent f3afd95a
......@@ -93,7 +93,13 @@ Item {
break;
}
}
activityConfiguration.locale = localeUtf8
if(dataToSave.locale) {
activityConfiguration.locale = localeUtf8
activityConfiguration.locale = activityConfiguration.availableLangs[0].locale
}
else {
localeBox.currentIndex = 0
}
activityConfiguration.uppercaseOnly = (dataToSave.uppercaseMode === "true")
if(dataToSave.speedSetting) {
activityConfiguration.speedSetting = dataToSave.speedSetting
......
......@@ -47,6 +47,10 @@ Item {
property var dataToSave
function setDefaultValues() {
if(dataToSave["mode"] === undefined) {
dataToSave["mode"] = "dot";
modeBox.currentIndex = 0
}
for(var i = 0 ; i < availableModes.length ; i++) {
if(availableModes[i].value === dataToSave["mode"]) {
modeBox.currentIndex = i;
......
......@@ -81,6 +81,10 @@ Item {
break;
}
}
if(dataToSave["mode"] === undefined) {
dataToSave["mode"] = "dot";
modeBox.currentIndex = 0
}
if(dataToSave.speedSetting) {
activityConfiguration.speedSetting = dataToSave.speedSetting
}
......
......@@ -48,6 +48,7 @@ Item {
function setDefaultValues() {
if(dataToSave["mode"] === undefined) {
dataToSave["mode"] = "IMAGE";
modeBox.currentIndex = 0
}
for(var i = 0 ; i < availableModes.length ; i ++) {
if(availableModes[i].value === dataToSave["mode"]) {
......
......@@ -93,7 +93,13 @@ Item {
break;
}
}
activityConfiguration.locale = localeUtf8
if(dataToSave.locale) {
activityConfiguration.locale = localeUtf8
}
else {
localeBox.currentIndex = 0
activityConfiguration.locale = activityConfiguration.availableLangs[0].locale
}
activityConfiguration.uppercaseOnly = (dataToSave.uppercaseMode === "true")
if(dataToSave.speedSetting) {
activityConfiguration.speedSetting = dataToSave.speedSetting
......
Markdown is supported
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