fix: potential crash calling tray.popUpContextMenu()
(#39231)
fix: potential crash calling tray.popUpContextMenu
This commit is contained in:
parent
c8f7a0e052
commit
1f19a74417
7 changed files with 31 additions and 20 deletions
|
@ -342,7 +342,9 @@ void Tray::PopUpContextMenu(gin::Arguments* args) {
|
|||
}
|
||||
}
|
||||
}
|
||||
tray_icon_->PopUpContextMenu(pos, menu.IsEmpty() ? nullptr : menu->model());
|
||||
|
||||
tray_icon_->PopUpContextMenu(
|
||||
pos, menu.IsEmpty() ? nullptr : menu->model()->GetWeakPtr());
|
||||
}
|
||||
|
||||
void Tray::CloseContextMenu() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue