Skip to content

Commit

Permalink
Disable dock show on dispose (#38)
Browse files Browse the repository at this point in the history
Prevent flash of macOS dock icon during auto-updates. Fixes #36.
  • Loading branch information
dcalhoun authored Feb 26, 2018
1 parent aed5bf8 commit 1cab7c5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions modules/__tests__/dispose.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ describe('dispose', () => {
expect(showWindows).toHaveBeenCalledTimes(1);
});

it('shows the dock icon', () => {
expect(app.dock.show).toHaveBeenCalledTimes(1);
});

it('unsubscribes from config changes', () => {
expect(cfgUnsubscribeMock).toHaveBeenCalledTimes(1);
});
Expand Down
3 changes: 0 additions & 3 deletions modules/dispose.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ module.exports = (app, callbacks = {}) => {
const { cfgUnsubscribe, handleActivate, handleBlur } = callbacks;

showWindows(app);
if (app.dock) {
app.dock.show();
}
// TODO: Unregister shortcut when supported
// unregisterShortcut()

Expand Down

0 comments on commit 1cab7c5

Please sign in to comment.