Merge pull request #11279 from sethlu/openrecent

Update submenu's title at replacement
This commit is contained in:
Cheng Zhao 2017-12-19 15:28:02 +09:00 committed by GitHub
commit 81527b71ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];