From 2743d60f52974ba5d36068fc879908fdb6f28c14 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 27 Jan 2020 06:02:33 +0900 Subject: [PATCH] fix: menu not updating with Tray.setContextMenu (#21883) --- shell/browser/ui/tray_icon_gtk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/ui/tray_icon_gtk.cc b/shell/browser/ui/tray_icon_gtk.cc index 87949d0b861a..6baa35e7932f 100644 --- a/shell/browser/ui/tray_icon_gtk.cc +++ b/shell/browser/ui/tray_icon_gtk.cc @@ -38,8 +38,8 @@ void TrayIconGtk::SetToolTip(const std::string& tool_tip) { } void TrayIconGtk::SetContextMenu(AtomMenuModel* menu_model) { - icon_->UpdatePlatformContextMenu(menu_model_); menu_model_ = menu_model; + icon_->UpdatePlatformContextMenu(menu_model_); } const gfx::ImageSkia& TrayIconGtk::GetImage() const {