mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Problems when saving game are now user-visible
This commit is contained in:
parent
0800dbba51
commit
0b7f45bba0
@ -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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user