Skip to content

Commit f7f1a6d

Browse files
ahkohdsentialx
authored andcommitted
Fix setWindowMinimized issue (#17)
* Fix setWindowMinimized issue * Resolve setWindowMinimized to two params * Code clean up
1 parent f54e18a commit f7f1a6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classes/window.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class Window {
109109
if (platform() === "win32") {
110110
addon.showWindow(this.id, "minimize");
111111
} else if (platform() === "darwin") {
112-
addon.setWindowMinimized(this.id, this.processId, true);
112+
addon.setWindowMinimized(this.id, true);
113113
}
114114
}
115115

@@ -119,7 +119,7 @@ export class Window {
119119
if (platform() === "win32") {
120120
addon.showWindow(this.id, "restore");
121121
} else if (platform() === "darwin") {
122-
addon.setWindowMinimized(this.id, this.processId, false);
122+
addon.setWindowMinimized(this.id, false);
123123
}
124124
}
125125

0 commit comments

Comments
 (0)