From 7e9f730f66ac23fd1075498442ca4b52941f59b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E8=90=8C=E5=93=92=E8=B5=AB=E8=90=9D?= Date: Sun, 9 Apr 2023 23:48:06 +0800 Subject: [PATCH] :hammer: Refactor: add platform check for dock hidden --- src/main/lifeCycle/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/lifeCycle/index.ts b/src/main/lifeCycle/index.ts index c823faa..7544622 100644 --- a/src/main/lifeCycle/index.ts +++ b/src/main/lifeCycle/index.ts @@ -163,7 +163,7 @@ class LifeCycle { } db.set('needReload', false) const isHideDock = db.get('settings.isHideDock') || false - if (isHideDock) { + if (isHideDock && process.platform === 'darwin') { app.dock.hide() } updateChecker()