Skip to content

A full-featured download manager.

docs: add fixUserConfig comment

Dr_rOotc6dd1e333e45
diff --git a/src/main/core/ConfigManager.js b/src/main/core/ConfigManager.js
index fb2948e8..62bebe41 100644
--- a/src/main/core/ConfigManager.js
+++ b/src/main/core/ConfigManager.js
@@ -128,6 +128,8 @@ export default class ConfigManager {
}
fixUserConfig () {
+ // Fix the value of open-at-login when the user delete
+ // the Motrix self-starting item through startup management.
const openAtLogin = app.getLoginItemSettings().openAtLogin
if (this.getUserConfig('open-at-login') !== openAtLogin) {
this.setUserConfig('open-at-login', openAtLogin)