Skip to content

Commit

Permalink
remove event parameter from handler function params
Browse files Browse the repository at this point in the history
  • Loading branch information
BTreston committed Nov 15, 2024
1 parent d17c9f5 commit e902a8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jslib/electron/src/tray.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ export class TrayMain {
}

setupWindowListeners(win: BrowserWindow) {
win.on("minimize", async (e: Event) => {
win.on("minimize", async () => {
if (await this.stateService.getEnableMinimizeToTray()) {
e.preventDefault();
this.hideToTray();
}
});
Expand Down

0 comments on commit e902a8e

Please sign in to comment.