mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: tray.displayBalloon() does not work with custom icon on Windows (#19530)
This commit is contained in:
@@ -192,7 +192,7 @@ void Tray::DisplayBalloon(mate::Arguments* args,
|
||||
|
||||
#if defined(OS_WIN)
|
||||
tray_icon_->DisplayBalloon(
|
||||
icon.IsEmpty() ? NULL : icon->GetHICON(GetSystemMetrics(SM_CXSMICON)),
|
||||
icon.IsEmpty() ? NULL : icon->GetHICON(GetSystemMetrics(SM_CXICON)),
|
||||
title, content);
|
||||
#else
|
||||
tray_icon_->DisplayBalloon(icon.IsEmpty() ? gfx::Image() : icon->image(),
|
||||
|
||||
Reference in New Issue
Block a user