Skip to content

Commit

Permalink
fix: Avoid setVisibleOnAllWorkspaces from destroying the original vis…
Browse files Browse the repository at this point in the history
…ible state of app.dock (#442)
  • Loading branch information
1zilc authored Oct 13, 2023
1 parent 935b31c commit d8df2ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Menubar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,10 @@ export class Menubar extends EventEmitter {
});

if (this._options.showOnAllWorkspaces !== false) {
this._browserWindow.setVisibleOnAllWorkspaces(true);
// https://github.com/electron/electron/issues/37832#issuecomment-1497882944
this._browserWindow.setVisibleOnAllWorkspaces(true, {
skipTransformProcessType: true // Avoid damaging the original visible state of app.dock
});
}

this._browserWindow.on('close', this.windowClear.bind(this));
Expand Down

0 comments on commit d8df2ab

Please sign in to comment.