mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 11:55:56 +00:00
Don't speak empty labels since this seems to cause a silent crash.
This commit is contained in:
parent
4ff6b51114
commit
833a34b602
|
@ -454,6 +454,7 @@ func focused():
|
||||||
if label:
|
if label:
|
||||||
if label is Label:
|
if label is Label:
|
||||||
label = label.text
|
label = label.text
|
||||||
|
if label and label != "":
|
||||||
TTS.speak(label, false)
|
TTS.speak(label, false)
|
||||||
if node is MenuButton:
|
if node is MenuButton:
|
||||||
menu_button_focused()
|
menu_button_focused()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user