Compare commits

..

2 commits

Author SHA1 Message Date
smartfrigde
41933e3c4f Update assets and add new ones 2022-04-21 18:20:58 +02:00
smartfrigde
1666b8a098 Fix corrupted settings checker 2022-04-21 15:23:06 +02:00
9 changed files with 3 additions and 2 deletions

BIN
assets/ac_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

BIN
assets/ac_white_plug.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
assets/dsc-tray.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

@ -6,7 +6,7 @@ import { createSettingsWindow } from "./settings/main";
let tray: any = null;
app.whenReady().then(async () => {
if (await getConfig("windowStyle") == "discord") {
tray = new Tray(path.join(__dirname, "../", "/assets/ac_plug.png"));
tray = new Tray(path.join(__dirname, "../", "/assets/dsc-tray.png"));
const contextMenu = Menu.buildFromTemplate([
{
label: "Open ArmCord",

View file

@ -21,7 +21,7 @@ export async function sleep(ms: number) {
}
export async function checkIfConfigIsBroken() {
if ((await getConfig("0")) == "d") {
if (await getConfig("0") == "d") {
console.log("Detected a corrupted config");
setup();
dialog.showErrorBox(

View file

@ -8,6 +8,7 @@ import {checkIfConfigIsBroken, firstRun, getConfig, contentPath} from "./utils";
import {registerIpc} from "./ipc";
import startServer from "./socket"
import contextMenu from "electron-context-menu";
export var icon: string;
export let mainWindow: BrowserWindow;
export let inviteWindow: BrowserWindow;
let guestWindows: BrowserWindow[] = [];