diff options
author | hop311 <hop3114@gmail.com> | 2024-07-23 21:25:44 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-07-26 22:20:42 +0200 |
commit | 46c3009075be36577ab7dbea263655e428833b20 (patch) | |
tree | d6cb992d6d3bf8cb1b1090fa18e0002fa4539b1a /game/src/Game | |
parent | f61760e725de0ae4878580a93bcd8ce456aa539f (diff) |
Cache sort order of localised population menu columnslocale-sort-cache
Diffstat (limited to 'game/src/Game')
-rw-r--r-- | game/src/Game/GameSession/NationManagementScreen/PopulationMenu.gd | 3 |
1 files changed, 3 insertions, 0 deletions
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: |