Move Disabling Stack Dumping To NoTrack

This commit is contained in:
thororen 2026-09-23 20:31:46 -04:00
parent 0979c5c82c
commit 0b750f6100
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

View file

@ -150,7 +150,7 @@ if (!IS_VANILLA) {
});
process.env.DATA_DIR = join(app.getPath("userData"), "..", "Equicord");
process.env.ELECTRON_ENABLE_STACK_DUMPING = "true";
if (settings.plugins?.NoTrack?.disableStackDumping !== false) process.env.ELECTRON_ENABLE_STACK_DUMPING = "true";
} else {
console.log("[Equicord] Running in vanilla mode. Not loading Equicord");
}

View file

@ -29,6 +29,13 @@ const settings = definePluginSettings({
description: "Disable Discord's tracking (analytics/'science')",
default: true,
restartNeeded: true
},
disableStackDumping: {
type: OptionType.BOOLEAN,
description: "Print a native stack trace to the console when Discord crashes. Requires full restart.",
default: false,
restartNeeded: true,
target: "DESKTOP"
}
});