Skip to content

A full-featured download manager.

refactor: rename factory-reset command

Dr_rOot4d7922f112eb
diff --git a/src/main/Application.js b/src/main/Application.js
index 757921f1..174ba40d 100644
--- a/src/main/Application.js
+++ b/src/main/Application.js
@@ -743,7 +743,7 @@ export default class Application extends EventEmitter {
this.on('application:reset-session', () => this.resetSession())
- this.on('application:reset', () => {
+ this.on('application:factory-reset', () => {
this.offConfigListeners()
this.configManager.reset()
this.relaunch()
diff --git a/src/renderer/components/Preference/Advanced.vue b/src/renderer/components/Preference/Advanced.vue
index b9b0d4e2..0d185456 100644
--- a/src/renderer/components/Preference/Advanced.vue
+++ b/src/renderer/components/Preference/Advanced.vue
@@ -676,7 +676,7 @@
cancelId: 1
}).then(({ response }) => {
if (response === 0) {
- this.$electron.ipcRenderer.send('command', 'application:reset')
+ this.$electron.ipcRenderer.send('command', 'application:factory-reset')
}
})
},