From 46c3009075be36577ab7dbea263655e428833b20 Mon Sep 17 00:00:00 2001 From: hop311 Date: Tue, 23 Jul 2024 20:25:44 +0100 Subject: Cache sort order of localised population menu columns --- game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'game/src/Game/GameSession') diff --git a/game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd b/game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd index 0bcf64a..2799dd4 100644 --- a/game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd +++ b/game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd @@ -66,6 +66,8 @@ func _ready() -> void: MenuSingleton.population_menu_province_list_selected_changed.connect(_update_province_list) MenuSingleton.population_menu_pops_changed.connect(_update_pops) + MenuSingleton.population_menu_update_locale_sort_cache() + Events.NationManagementScreens.update_active_nation_management_screen.connect(_on_update_active_nation_management_screen) add_gui_element(_scene_name, "country_pop") @@ -396,6 +398,7 @@ func _setup_pop_list() -> void: func _notification(what : int) -> void: match what: NOTIFICATION_TRANSLATION_CHANGED: + MenuSingleton.population_menu_update_locale_sort_cache() _update_info() func _on_update_active_nation_management_screen(active_screen : NationManagement.Screen) -> void: -- cgit v1.2.3-56-ga3b1