mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 01:39:40 +07:00
Resolved #7647 - Mod translations loaded upon lod download
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user