Resolved #7647 - Mod translations loaded upon lod download

This commit is contained in:
Yair Morgenstern
2022-08-12 14:24:18 +03:00
parent a4424d2ab1
commit 306aef4c67

View File

@ -12,6 +12,7 @@ import com.badlogic.gdx.scenes.scene2d.ui.TextButton
import com.badlogic.gdx.utils.Align
import com.badlogic.gdx.utils.SerializationException
import com.unciv.MainMenuScreen
import com.unciv.UncivGame
import com.unciv.json.fromJsonFile
import com.unciv.json.json
import com.unciv.models.ruleset.ModOptions
@ -431,6 +432,7 @@ class ModManagementScreen(
launchOnGLThread {
ToastPopup("[${repo.name}] Downloaded!", this@ModManagementScreen)
RulesetCache.loadRulesets()
UncivGame.Current.translations.tryReadTranslationForCurrentLanguage()
RulesetCache[repo.name]?.let {
installedModInfo[repo.name] = ModUIData(it)
}