Browse Source

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

trop[bot] 5 years ago
parent
commit
cba1a946d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/api/atom_api_tray.cc

+ 1 - 1
atom/browser/api/atom_api_tray.cc

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