mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-25 10:26:05 +07:00
Fix double "close" action from Overview ESC key (#11185)
This commit is contained in:
parent
84902b7957
commit
bebe0c67da
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user