A full-featured download manager.
feat: handle setup-protocols-client command
thecodrrc8dcb1023fe8
diff --git a/src/main/Application.js b/src/main/Application.jsindex 73b45fac..3215c430 100644--- a/src/main/Application.js+++ b/src/main/Application.js@@ -380,6 +380,10 @@ export default class Application extends EventEmitter {app.clearRecentDocuments()})+ this.on('application:setup-protocols-client', (protocols) => {+ this.protocolManager.setup(protocols)+ })+this.on('help:official-website', () => {const url = 'https://motrix.app/'shell.openExternal(url)diff --git a/src/renderer/components/Preference/Advanced.vue b/src/renderer/components/Preference/Advanced.vueindex e59620ed..69f72aab 100644--- a/src/renderer/components/Preference/Advanced.vue+++ b/src/renderer/components/Preference/Advanced.vue@@ -336,7 +336,7 @@})if (this.isRenderer()) {- this.$electron.ipcRenderer.send('command', "application:setup-protocols-client", data.protocols)+ this.$electron.ipcRenderer.send('command', 'application:setup-protocols-client', data.protocols)}})},