Skip to content

A full-featured download manager.

fix: Shadow not complete

Shatyuka93a6f1cfbd08
diff --git a/src/main/ui/WindowManager.js b/src/main/ui/WindowManager.js
index a5124095..e516ec11 100644
--- a/src/main/ui/WindowManager.js
+++ b/src/main/ui/WindowManager.js
@@ -86,7 +86,8 @@ export default class WindowManager extends EventEmitter {
enableRemoteModule: true,
nodeIntegration: true,
nodeIntegrationInWorker: true
- }
+ },
+ hasShadow: !is.macOS()
})
const bounds = this.getPageBounds(page)
diff --git a/src/renderer/pages/index/main.js b/src/renderer/pages/index/main.js
index 3995a2f8..724e10ae 100644
--- a/src/renderer/pages/index/main.js
+++ b/src/renderer/pages/index/main.js
@@ -98,6 +98,7 @@ function init (config) {
setTimeout(() => {
loading.close()
+ require('electron').remote.getCurrentWindow().setHasShadow(true)
}, 400)
}