From eb4f67334db7391a992eb3843dd4ad48ed10c52e Mon Sep 17 00:00:00 2001 From: Agampreet Singh <68941022+agam778@users.noreply.github.com> Date: Thu, 16 Feb 2023 16:16:37 +0530 Subject: [PATCH] Change the way how checked under "Enable discord rpc" works --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index f7c417f..af302bf 100644 --- a/main.js +++ b/main.js @@ -281,7 +281,7 @@ const menulayout = [ return; } else if ( store.get("discordrpcstatus") === "false" || - !store.get("discordrpcstatus") + store.get("discordrpcstatus") === undefined ) { store.set("discordrpcstatus", "true"); dialog.showMessageBoxSync({ @@ -296,7 +296,7 @@ const menulayout = [ return; } }, - checked: store.get("discordrpcstatus") === "true", + checked: store.get("discordrpcstatus") === "true" ? true : false, }, { type: "separator" }, {