mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-20 19:56:51 +01:00
parent
2b6c9e7ec0
commit
600f262cca
|
|
@ -96,7 +96,9 @@ class LoadGameScreen(previousScreen:CameraStageBaseScreen) : PickerScreen() {
|
|||
loadFromCustomLocation.onClick {
|
||||
GameSaver.loadGameFromCustomLocation { gameInfo, exception ->
|
||||
if (gameInfo != null) {
|
||||
game.loadGame(gameInfo)
|
||||
Gdx.app.postRunnable {
|
||||
game.loadGame(gameInfo)
|
||||
}
|
||||
} else if (exception !is CancellationException) {
|
||||
errorLabel.setText("Could not load game from custom location!".tr())
|
||||
exception?.printStackTrace()
|
||||
|
|
@ -195,4 +197,4 @@ class LoadGameScreen(previousScreen:CameraStageBaseScreen) : PickerScreen() {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user