mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
@@ -84,7 +84,7 @@ NSAlert* CreateNSAlert(const MessageBoxSettings& settings) {
|
|||||||
|
|
||||||
// TODO(@codebytere): This behavior violates HIG & should be deprecated.
|
// TODO(@codebytere): This behavior violates HIG & should be deprecated.
|
||||||
if (settings.cancel_id == settings.default_id) {
|
if (settings.cancel_id == settings.default_id) {
|
||||||
[[ns_buttons objectAtIndex:settings.default_id] highlight:YES];
|
[(NSButton*)[ns_buttons objectAtIndex:settings.default_id] highlight:YES];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user