Make question loading resilient to network failures
This commit is contained in:
@@ -837,6 +837,11 @@ func _on_random_question_changed() -> void:
|
||||
func _on_random_question_failed(message: String) -> void:
|
||||
if not awaiting_next_question:
|
||||
return
|
||||
if QuestionBankService.load_state == "retrying":
|
||||
next_button.text = "Reconnecting..."
|
||||
next_button.disabled = true
|
||||
next_button.tooltip_text = message
|
||||
return
|
||||
awaiting_next_question = false
|
||||
next_button.text = "Retry"
|
||||
next_button.disabled = false
|
||||
|
||||
Reference in New Issue
Block a user