mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 15:29:32 +07:00
Fix Main Menu BG map cycle not stopping on user action (#9229)
This commit is contained in:
@ -258,12 +258,12 @@ class MainMenuScreen: BaseScreen(), RecreateOnResize {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun stopBackgroundMapGeneration() {
|
private fun stopBackgroundMapGeneration() {
|
||||||
|
backgroundStack.clearActions()
|
||||||
val currentJob = backgroundMapGenerationJob
|
val currentJob = backgroundMapGenerationJob
|
||||||
?: return
|
?: return
|
||||||
backgroundMapGenerationJob = null
|
backgroundMapGenerationJob = null
|
||||||
if (currentJob.isCancelled) return
|
if (currentJob.isCancelled) return
|
||||||
currentJob.cancel()
|
currentJob.cancel()
|
||||||
backgroundStack.clearActions()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun resumeGame() {
|
private fun resumeGame() {
|
||||||
|
Reference in New Issue
Block a user