mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-26 07:39:44 +07:00
Resolved #8431 - Do not load updated multiplayer if the user has already gone somewhere else
This commit is contained in:
@ -337,6 +337,8 @@ class WorldScreen(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun loadLatestMultiplayerState(): Unit = coroutineScope {
|
private suspend fun loadLatestMultiplayerState(): Unit = coroutineScope {
|
||||||
|
if (game.screen != this@WorldScreen) return@coroutineScope // User already went somewhere else
|
||||||
|
|
||||||
val loadingGamePopup = Popup(this@WorldScreen)
|
val loadingGamePopup = Popup(this@WorldScreen)
|
||||||
launchOnGLThread {
|
launchOnGLThread {
|
||||||
loadingGamePopup.addGoodSizedLabel("Loading latest game state...")
|
loadingGamePopup.addGoodSizedLabel("Loading latest game state...")
|
||||||
|
Reference in New Issue
Block a user