Change the way how checked under "Enable discord rpc" works

This commit is contained in:
Agampreet Singh
2023-02-16 16:16:37 +05:30
parent ac64eeb18b
commit eb4f67334d

View File

@@ -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" },
{