Skip to content

A full-featured download manager.

fix: linux tray not support right click

Dr_rOot4e6164816fae
diff --git a/src/main/Application.js b/src/main/Application.js
index e5056d24..a17cf51e 100644
--- a/src/main/Application.js
+++ b/src/main/Application.js
@@ -347,9 +347,9 @@ export default class Application extends EventEmitter {
this.energyManager.stopPowerSaveBlocker()
- this.trayManager.destroy()
-
await this.stopEngine()
+
+ this.trayManager.destroy()
} catch (err) {
logger.warn('[Motrix] stop error: ', err.message)
}
diff --git a/src/main/ui/TrayManager.js b/src/main/ui/TrayManager.js
index 299bb77f..e6823b1d 100644
--- a/src/main/ui/TrayManager.js
+++ b/src/main/ui/TrayManager.js
@@ -88,6 +88,11 @@ export default class TrayManager extends EventEmitter {
handleTrayClick = (event) => {
event.preventDefault()
+ if (is.linux()) {
+ tray.popUpContextMenu(this.menu)
+ return
+ }
+
global.application.toggle()
}
diff --git a/src/renderer/components/Logo/Logo.vue b/src/renderer/components/Logo/Logo.vue
index 31bdc128..5edcee57 100644
--- a/src/renderer/components/Logo/Logo.vue
+++ b/src/renderer/components/Logo/Logo.vue
@@ -37,6 +37,7 @@
display: block;
width: 100%;
height: 100%;
+ outline: none;
text-align: center;
font-size: 0;
color: $--app-logo-color;
diff --git a/src/shared/keymap.json b/src/shared/keymap.json
index 1d3ac4f3..5731bbf7 100644
--- a/src/shared/keymap.json
+++ b/src/shared/keymap.json
@@ -1,10 +1,10 @@
{
- "cmd-q": "application:quit",
- "cmd-n": "application:new-task",
- "cmd-shift-n": "application:new-bt-task",
- "cmd-o": "application:open-file",
- "cmd-,": "application:preferences",
- "cmd-shift-p": "application:pause-all-task",
- "cmd-shift-r": "application:resume-all-task",
+ "cmdctrl-q": "application:quit",
+ "cmdctrl-n": "application:new-task",
+ "cmdctrl-shift-n": "application:new-bt-task",
+ "cmdctrl-o": "application:open-file",
+ "cmdctrl-,": "application:preferences",
+ "cmdctrl-shift-p": "application:pause-all-task",
+ "cmdctrl-shift-r": "application:resume-all-task",
"ctrl-shift-a": "application:select-all-task"
}