Skip to content

Commit 3dbcc59

Browse files
committed
Fix resolution options text update before selector is ready
1 parent e452a14 commit 3dbcc59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

game/src/Game/Menu/OptionMenu/ResolutionSelector.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ func _sync_resolutions() -> void:
3737
func _notification(what : int) -> void:
3838
match what:
3939
NOTIFICATION_TRANSLATION_CHANGED:
40-
_update_resolution_options_text()
40+
if is_node_ready():
41+
_update_resolution_options_text()
4142

4243
func _update_resolution_options_text() -> void:
4344
for index : int in get_item_count():

0 commit comments

Comments
 (0)