Skip to content

A full-featured download manager.

fix: openDownloadDock & updateDockBadge mac only

Dr_rOot3e2b448e0942
diff --git a/src/renderer/components/Native/utils.js b/src/renderer/components/Native/utils.js
index a1e3f8e4..d249dcbc 100644
--- a/src/renderer/components/Native/utils.js
+++ b/src/renderer/components/Native/utils.js
@@ -70,15 +70,21 @@ export function moveTaskFilesToTrash (task, messages = {}) {
}
export function openDownloadDock (path) {
+ if (!is.macOS()) {
+ return
+ }
remote.app.dock.downloadFinished(path)
}
export function updateDockBadge (text) {
+ if (!is.macOS()) {
+ return
+ }
remote.app.dock.setBadge(text)
}
export function showDownloadSpeedInDock (downloadSpeed) {
- if (is.windows()) {
+ if (!is.macOS()) {
return
}
const text = downloadSpeed > 0 ? bytesToSize(downloadSpeed) : ''