mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 07:18:57 +07:00
Problems when saving game are now user-visible
This commit is contained in:
@ -90,7 +90,10 @@ class SaveGameScreen : PickerScreen() {
|
|||||||
rightSideButton.setText("Saving...".tr())
|
rightSideButton.setText("Saving...".tr())
|
||||||
thread(name = "SaveGame") {
|
thread(name = "SaveGame") {
|
||||||
GameSaver.saveGame(UncivGame.Current.gameInfo, gameNameTextField.text) {
|
GameSaver.saveGame(UncivGame.Current.gameInfo, gameNameTextField.text) {
|
||||||
Gdx.app.postRunnable { UncivGame.Current.setWorldScreen() }
|
Gdx.app.postRunnable {
|
||||||
|
if (it != null) ToastPopup("Could not save game!", this)
|
||||||
|
else UncivGame.Current.setWorldScreen()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user