mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +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())
|
||||
thread(name = "SaveGame") {
|
||||
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