From d0dce25590f167387ac97694bef4e39b85273c73 Mon Sep 17 00:00:00 2001 From: GGGuenni Date: Wed, 4 Nov 2020 20:59:31 +0100 Subject: [PATCH] Fixed SetUserID (#3319) SetUserID couldn't be used in main menu --- core/src/com/unciv/ui/worldscreen/mainmenu/OptionsPopup.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/worldscreen/mainmenu/OptionsPopup.kt b/core/src/com/unciv/ui/worldscreen/mainmenu/OptionsPopup.kt index fd49435cfb..94dbadd52c 100644 --- a/core/src/com/unciv/ui/worldscreen/mainmenu/OptionsPopup.kt +++ b/core/src/com/unciv/ui/worldscreen/mainmenu/OptionsPopup.kt @@ -153,7 +153,7 @@ class OptionsPopup(val previousScreen:CameraStageBaseScreen) : Popup(previousScr settings.userId = clipboardContents settings.save() idSetLabel.setFontColor(Color.WHITE).setText("ID successfully set!".tr()) - }).open(true) + }, previousScreen).open(true) idSetLabel.isVisible = true } catch (ex: Exception) { idSetLabel.isVisible = true