mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Fix theme settings corrupting
This commit is contained in:
parent
51018b108a
commit
b1cb66e587
1 changed files with 3 additions and 1 deletions
|
@ -129,13 +129,15 @@ export function createTManagerWindow(): void {
|
|||
});
|
||||
ipcMain.on("addToDisabled", async (_event, name: string) => {
|
||||
fs.appendFileSync(path.join(userDataPath, "/disabled.txt"), name + "\n");
|
||||
sleep(1000);
|
||||
});
|
||||
ipcMain.on("disabled", async (e) => {
|
||||
e.returnValue = fs.readFileSync(path.join(userDataPath, "/disabled.txt")).toString();
|
||||
});
|
||||
ipcMain.on("removeFromDisabled", async (_event, name: string) => {
|
||||
var e = await fs.readFileSync(path.join(userDataPath, "/disabled.txt")).toString();
|
||||
fs.writeFileSync(path.join(userDataPath, "/disabled.txt"), e.replace(name + "\n", ""));
|
||||
fs.writeFileSync(path.join(userDataPath, "/disabled.txt"), e.replace(name, ""));
|
||||
sleep(1000);
|
||||
});
|
||||
ipcMain.on("installBDTheme", async (_event, link: string) => {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue