chore: fix compile issue about ambiguous error of multiple methods named 'highlight'. (#43801)

chore: fix ambiguous error of multiple methods named 'highlight'

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: bill.shen <shenyb32768@gmail.com>
This commit is contained in:
trop[bot] 2024-09-19 09:33:28 -05:00 committed by GitHub
parent bd9e00968b
commit 08579bdcd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,7 +84,7 @@ NSAlert* CreateNSAlert(const MessageBoxSettings& settings) {
// TODO(@codebytere): This behavior violates HIG & should be deprecated.
if (settings.cancel_id == settings.default_id) {
[[ns_buttons objectAtIndex:settings.default_id] highlight:YES];
[(NSButton*)[ns_buttons objectAtIndex:settings.default_id] highlight:YES];
}
}