fix: menu not updating with Tray.setContextMenu (#21883)

This commit is contained in:
Cheng Zhao 2020-01-27 06:02:33 +09:00 committed by Charles Kerr
parent edafbc43e1
commit 2743d60f52

View file

@ -38,8 +38,8 @@ void TrayIconGtk::SetToolTip(const std::string& tool_tip) {
} }
void TrayIconGtk::SetContextMenu(AtomMenuModel* menu_model) { void TrayIconGtk::SetContextMenu(AtomMenuModel* menu_model) {
icon_->UpdatePlatformContextMenu(menu_model_);
menu_model_ = menu_model; menu_model_ = menu_model;
icon_->UpdatePlatformContextMenu(menu_model_);
} }
const gfx::ImageSkia& TrayIconGtk::GetImage() const { const gfx::ImageSkia& TrayIconGtk::GetImage() const {