mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
fix: menu not updating with Tray.setContextMenu (#21883)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user