diff options
Diffstat (limited to 'views/controls/button/native_button.cc')
-rw-r--r-- | views/controls/button/native_button.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/controls/button/native_button.cc b/views/controls/button/native_button.cc index 7086008..5ff98e8 100644 --- a/views/controls/button/native_button.cc +++ b/views/controls/button/native_button.cc @@ -79,6 +79,9 @@ void NativeButton::SetLabel(const std::wstring& label) { if (native_wrapper_) native_wrapper_->UpdateLabel(); + + // Update the accessible name whenever the label changes. + SetAccessibleName(label); } void NativeButton::SetIsDefault(bool is_default) { |