Merge pull request #11279 from sethlu/openrecent
Update submenu's title at replacement
This commit is contained in:
commit
81527b71ba
1 changed files with 2 additions and 0 deletions
|
@ -177,6 +177,8 @@ static base::scoped_nsobject<NSMenu> recentDocumentsMenuSwap_;
|
|||
// Repopulate with items from the submenu to be replaced
|
||||
[self moveMenuItems:recentDocumentsMenuSwap_
|
||||
to:recentDocumentsMenu];
|
||||
// Update the submenu's title
|
||||
[recentDocumentsMenu setTitle:[recentDocumentsMenuSwap_ title]];
|
||||
// Replace submenu
|
||||
[item setSubmenu:recentDocumentsMenu];
|
||||
|
||||
|
|
Loading…
Reference in a new issue