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,7 +454,8 @@ func focused():
|
||||||
if label:
|
if label:
|
||||||
if label is Label:
|
if label is Label:
|
||||||
label = label.text
|
label = label.text
|
||||||
TTS.speak(label, false)
|
if label and label != "":
|
||||||
|
TTS.speak(label, false)
|
||||||
if node is MenuButton:
|
if node is MenuButton:
|
||||||
menu_button_focused()
|
menu_button_focused()
|
||||||
elif node is AcceptDialog:
|
elif node is AcceptDialog:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user