Use NSTouchBar itemForIdentifier to lookup existing item
This commit is contained in:
parent
8d716e8b17
commit
d1edd80ef8
4 changed files with 85 additions and 64 deletions
|
@ -376,8 +376,8 @@ bool ScopedDisableResize::disable_resize_ = false;
|
|||
}
|
||||
|
||||
- (void)refreshTouchBarItem:(const std::string&)item_id {
|
||||
if (atom_touch_bar_)
|
||||
[atom_touch_bar_ refreshTouchBarItem:item_id];
|
||||
if (atom_touch_bar_ && self.touchBar)
|
||||
[atom_touch_bar_ refreshTouchBarItem:self.touchBar id:item_id];
|
||||
}
|
||||
|
||||
- (NSTouchBar*)makeTouchBar {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue