Fix double "close" action from Overview ESC key (#11185)

This commit is contained in:
SomeTroglodyte 2024-02-24 21:38:12 +01:00 committed by GitHub
parent 84902b7957
commit bebe0c67da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,6 @@ import com.unciv.GUI
import com.unciv.logic.civilization.Civilization
import com.unciv.logic.civilization.Notification
import com.unciv.ui.components.extensions.getCloseButton
import com.unciv.ui.components.input.KeyCharAndCode
import com.unciv.ui.components.widgets.TabbedPager
import com.unciv.ui.images.ImageGetter
import com.unciv.ui.screens.basescreen.BaseScreen
@ -45,8 +44,6 @@ class EmpireOverviewScreen(
val selectCategory = defaultCategory ?: EmpireOverviewCategories.values().firstOrNull { it.name == game.settings.lastOverviewPage }
val iconSize = Constants.defaultFontSize.toFloat()
globalShortcuts.add(KeyCharAndCode.BACK) { game.popScreen() }
tabbedPager = TabbedPager(
stage.width, stage.width,
centerAreaHeight, centerAreaHeight,