1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Apply review suggestions

This commit is contained in:
Ivan Savenko 2023-01-07 16:15:45 +02:00
parent 78ae6d6ed0
commit 67f7e5d042
2 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@
"description" : "Format used to define main mod file (mod.json) in VCMI",
"required" : [ "name", "description", "version", "author", "contact", "modType" ],
"definitions" : {
"localizeable" : {
"localizable" : {
"type":"object",
"additionalProperties" : false,
"required" : [ "name", "description", "author", "modType" ],
@ -114,23 +114,23 @@
},
"english" : {
"$ref" : "#/definitions/localizeable"
"$ref" : "#/definitions/localizable"
},
"german" : {
"$ref" : "#/definitions/localizeable"
"$ref" : "#/definitions/localizable"
},
"polish" : {
"$ref" : "#/definitions/localizeable"
"$ref" : "#/definitions/localizable"
},
"russian" : {
"$ref" : "#/definitions/localizeable"
"$ref" : "#/definitions/localizable"
},
"ukrainian" : {
"$ref" : "#/definitions/localizeable"
"$ref" : "#/definitions/localizable"
},
"artifacts": {

View File

@ -323,8 +323,8 @@ void CSettingsView::on_comboBoxLanguage_currentIndexChanged(int index)
Settings node = settings.write["general"]["language"];
node->String() = languageTagList[index];
if ( qApp->activeWindow() && dynamic_cast<MainWindow*>(qApp->activeWindow()) )
dynamic_cast<MainWindow*>(qApp->activeWindow())->updateTranslation();
if ( auto mainWindow = dynamic_cast<MainWindow*>(qApp->activeWindow()) )
mainWindow->updateTranslation();
}
void CSettingsView::changeEvent(QEvent *event)