Merge pull request #3997 from leethomas/fix-tray-icon-toggle

🍎🐛 make displaying alternate tray image depend on mouse dow…
This commit is contained in:
Cheng Zhao 2016-01-06 11:04:40 +08:00
Родитель bf327cf5f0 59eda67ba4
Коммит ace7c62e5e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -92,7 +92,7 @@ const CGFloat kVerticalTitleMargin = 2;
// Make use of NSImageView to draw the image, which can correctly draw
// template image under dark menu bar.
if (highlight && alternateImage_ &&
if (inMouseEventSequence_ && alternateImage_ &&
[image_view_ image] != alternateImage_.get()) {
[image_view_ setImage:alternateImage_];
} else if ([image_view_ image] != image_.get()) {