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:
parent
bd9e00968b
commit
08579bdcd5
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue