chore: remove redundant @available checks (#34407)
* chore: require macOS 10.13 for Chromium * chore: fix lint
This commit is contained in:
parent
000c3d981c
commit
539a53786c
9 changed files with 121 additions and 217 deletions
|
@ -422,10 +422,8 @@ static base::scoped_nsobject<NSMenu> recentDocumentsMenuSwap_;
|
|||
[item setKeyEquivalentModifierMask:modifier_mask];
|
||||
}
|
||||
|
||||
if (@available(macOS 10.13, *)) {
|
||||
[(id)item
|
||||
setAllowsKeyEquivalentWhenHidden:(model->WorksWhenHiddenAt(index))];
|
||||
}
|
||||
[(id)item
|
||||
setAllowsKeyEquivalentWhenHidden:(model->WorksWhenHiddenAt(index))];
|
||||
|
||||
// Set menu item's role.
|
||||
[item setTarget:self];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue