Skip to content

Commit

Permalink
fix: dock.hide error on linux
Browse files Browse the repository at this point in the history
Signed-off-by: The1111mp <[email protected]>
  • Loading branch information
1111mp committed Feb 2, 2024
1 parent d767010 commit d80ae1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const createWindow = async (code?: number) => {

app.on("window-all-closed", () => {
if (setting.closer == Closer.Minimize) {
platform !== "win32" && app.dock.hide();
platform === "darwin" && app.dock.hide();
}

if (setting.closer === Closer.Close) {
Expand Down

0 comments on commit d80ae1c

Please sign in to comment.