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

chore: fix ambiguous error of multiple methods named 'highlight'
This commit is contained in:
BILL SHEN 2024-09-19 19:01:36 +08:00 committed by GitHub
parent 0ac8ff6439
commit 855f219301
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,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];
}
}