diff --git a/github-electron/github-electron-main-tests.ts b/github-electron/github-electron-main-tests.ts index d74d4904a..5d3060e4b 100644 --- a/github-electron/github-electron-main-tests.ts +++ b/github-electron/github-electron-main-tests.ts @@ -169,6 +169,7 @@ app.dock.setMenu(dockMenu); app.dock.setBadge('foo'); var id = app.dock.bounce('informational'); app.dock.cancelBounce(id); +app.dock.setIcon('/path/to/icon.png'); app.setUserTasks([ { diff --git a/github-electron/github-electron.d.ts b/github-electron/github-electron.d.ts index 97e0fb1e4..d5ca18690 100644 --- a/github-electron/github-electron.d.ts +++ b/github-electron/github-electron.d.ts @@ -1125,6 +1125,12 @@ declare module Electron { * Note: This API is only available on Mac. */ setMenu(menu: Menu): void; + /** + * Sets the image associated with this dock icon. + * + * Note: This API is only available on Mac. + */ + setIcon(icon: NativeImage | string): void; } interface Task {