fix: tray.displayBalloon() does not work with custom icon on Windows (#19330)

This commit is contained in:
Milan Burda 2019-07-30 14:06:16 +02:00 committed by Alexey Kuzmin
parent 42a483ad27
commit 9ab3ec080f

View file

@ -199,7 +199,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(),