Merge pull request #5727 from rhysd/patch-2

Fixed parameter's type of Tray.setImage()
This commit is contained in:
Masahiro Wakame
2015-09-09 02:51:31 +09:00
2 changed files with 2 additions and 1 deletions

View File

@@ -411,6 +411,7 @@ app.on('ready', () => {
]);
appIcon.setToolTip('This is my application.');
appIcon.setContextMenu(contextMenu);
appIcon.setImage('/path/to/new/icon');
});
// clipboard

View File

@@ -1218,7 +1218,7 @@ declare module GitHubElectron {
/**
* Sets the image associated with this tray icon.
*/
setImage(image: NativeImage): void;
setImage(image: NativeImage|string): void;
/**
* Sets the image associated with this tray icon when pressed.
*/