Sync with rauenzi/BetterDiscordApp 640c511

This commit is contained in:
Jean Ouina 2020-07-19 13:29:54 +02:00
parent 121ca68647
commit b0ecc2a669
4 changed files with 20 additions and 16 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,19 +41,12 @@ export const LCChanelog = {
export const bbdChangelog = {
description: "BBD's changelog.",
changes: [
{
title: "What's New?",
items: [
"**Lightcord** is now using BandagedBD. That means all plugins you were using can be used too !",
"**Window Transparency** changes were made to more compatible with external window managers and addons like Glasstron.",
"Initialization sequence has once again been changed slightly to hopefully improve loading times."
]
},
{
title: "Bug Fixes",
type: "fixed",
items: [
"Some fixes related to showing modals in the `BdApi`."
"Some fixes related to showing modals in the `BdApi`.",
"Fixed the open folder buttons for plugins and themes"
]
}
]

View File

@ -17,9 +17,10 @@ import distant, { uuidv4 } from "./distant";
import EmojiModule from "./emojiModule"
import {remote as electron} from "electron"
import v2 from "./v2";
import webpackModules from "./webpackModules";
import contentManager from "./contentManager";
const {ipcRenderer} = require("electron");
function Core() {
// Object.assign(bdConfig, __non_webpack_require__(DataStore.configFile));
// this.init();
@ -28,14 +29,19 @@ function Core() {
let methods
Core.prototype.setConfig = function(config) {
if (this.hasStarted) return;
Object.assign(bdConfig, config);
};
Core.prototype.setMethods = function(m) {
if (this.hasStarted) return;
methods = m
};
Core.prototype.init = async function() {
if (this.hasStarted) return;
this.hasStarted = true;
if (!Array.prototype.flat) {
Utils.alert("Not Supported", "BetterDiscord v" + bbdVersion + " does not support this old version (" + currentDiscordVersion + ") of Discord. Please update your Discord installation before proceeding.");
return;