Fixed nation id being captured too late.
This commit is contained in:
4
webui.py
4
webui.py
@@ -146,7 +146,9 @@ def create_ai_table(era, table_container, ai_slots):
|
|||||||
ui.select(
|
ui.select(
|
||||||
AI_LEVELS,
|
AI_LEVELS,
|
||||||
value="Human",
|
value="Human",
|
||||||
on_change=lambda e: set_ai_level(e.value, nation_id, ai_slots),
|
on_change=lambda e, nid=nation_id: set_ai_level(
|
||||||
|
e.value, nid, ai_slots
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user