remove switch
This commit is contained in:
parent
58b3a0efc2
commit
4679c21493
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -33,9 +33,6 @@ export const settings = {
|
|||
"Scroll To Settings": {id: "fork-ps-3", info: "Auto-scrolls to a plugin's settings when the button is clicked (only if out of view)", implemented: true, hidden: false, cat: "core", category: "content manager"},
|
||||
"Automatic Loading": {id: "fork-ps-5", info: "Automatically loads, reloads, and unloads plugins and themes", implemented: true, hidden: false, cat: "core", category: "content manager"},
|
||||
|
||||
/* Beta */
|
||||
"BBD Beta": {id: "fork-beta", info: "Gives access to BBD beta. (Requires full restart after changing.)", implemented: true, hidden: false, cat: "core", category: "beta"},
|
||||
|
||||
/* Developer */
|
||||
"Developer Mode": {id: "bda-gs-8", info: "Developer Mode", implemented: true, hidden: false, cat: "core", category: "developer settings"},
|
||||
"Copy Selector": {id: "fork-dm-1", info: "Adds a \"Copy Selector\" option to context menus when developer mode is active", implemented: true, hidden: false, cat: "core", category: "developer settings"},
|
||||
|
@ -47,7 +44,7 @@ export const settings = {
|
|||
|
||||
/* Emotes */
|
||||
/* ====== */
|
||||
"Download Emotes": {id: "fork-es-3", info: "Download emotes when the cache is expired", implemented: true, hidden: false, cat: "emote"},
|
||||
"Download Emotes": {id: "fork-es-3", info: "Download emotes when the cache is expired", implemented: true, hidden: false, cat: "emote"},
|
||||
"Twitch Emotes": {id: "bda-es-7", info: "Show Twitch emotes", implemented: true, hidden: false, cat: "emote"},
|
||||
"FrankerFaceZ Emotes": {id: "bda-es-1", info: "Show FrankerFaceZ Emotes", implemented: true, hidden: false, cat: "emote"},
|
||||
"BetterTTV Emotes": {id: "bda-es-2", info: "Show BetterTTV Emotes", implemented: true, hidden: false, cat: "emote"},
|
||||
|
|
|
@ -120,37 +120,6 @@ export default new class V2_SettingsPanel {
|
|||
// else $("body").removeClass("bd-blue");
|
||||
// }
|
||||
|
||||
if (id == "fork-beta") {
|
||||
try {
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const configPath = path.join(DiscordNative.process.remote.resourcesPath, "app", "betterdiscord", "config.json");
|
||||
const config = __non_webpack_require__(configPath);
|
||||
if (enabled) {
|
||||
config.branch = "modularize";
|
||||
config.minified = false;
|
||||
}
|
||||
else {
|
||||
config.branch = "master";
|
||||
config.minified = true;
|
||||
}
|
||||
fs.writeFileSync(configPath, JSON.stringify(config, null, 4));
|
||||
}
|
||||
catch (err) {console.error(err);}
|
||||
(() => {
|
||||
const ModalStack = BDV2.WebpackModules.findByUniqueProperties(["push", "update", "pop", "popWithKey"]);
|
||||
const AlertModal = BDV2.WebpackModules.findByPrototypes(["handleCancel", "handleSubmit", "handleMinorConfirm"]);
|
||||
if (!ModalStack || !AlertModal) return;
|
||||
|
||||
ModalStack.push(function(props) {
|
||||
return BDV2.React.createElement(AlertModal, Object.assign({
|
||||
title: "Restart Required",
|
||||
body: "Please FULLY restart Discord in order for these changes to take effect.",
|
||||
}, props));
|
||||
});
|
||||
})();
|
||||
}
|
||||
|
||||
if (id == "bda-gs-2") {
|
||||
if (enabled) $("body").addClass("bd-minimal");
|
||||
else $("body").removeClass("bd-minimal");
|
||||
|
|
Loading…
Reference in New Issue