formatting

This commit is contained in:
smartfrigde 2022-06-16 17:31:42 +02:00
parent 0b165e64bc
commit b7a0d1face
1 changed files with 15 additions and 15 deletions

View File

@ -1,9 +1,9 @@
import {app, Menu, Tray} from "electron"; import { app, Menu, Tray } from "electron";
import {mainWindow} from "./window"; import { mainWindow } from "./window";
import {getConfig, setWindowState} from "./utils"; import { getConfig, setWindowState } from "./utils";
import * as path from "path"; import * as path from "path";
import {createSettingsWindow} from "./settings/main"; import { createSettingsWindow } from "./settings/main";
import {platform} from "process"; import { platform } from "process";
let tray: any = null; let tray: any = null;
let defaultIcon = "ac_plug_colored"; let defaultIcon = "ac_plug_colored";
app.whenReady().then(async () => { app.whenReady().then(async () => {
@ -23,11 +23,11 @@ app.whenReady().then(async () => {
label: "Quit ArmCord", label: "Quit ArmCord",
click: function () { click: function () {
let [width, height] = mainWindow.getSize() let [width, height] = mainWindow.getSize()
setWindowState({ setWindowState({
width: width, width: width,
height: height, height: height,
isMaximized: mainWindow.isMaximized() isMaximized: mainWindow.isMaximized()
}) })
app.quit(); app.quit();
} }
} }
@ -71,11 +71,11 @@ app.whenReady().then(async () => {
label: "Quit ArmCord", label: "Quit ArmCord",
click: function () { click: function () {
let [width, height] = mainWindow.getSize() let [width, height] = mainWindow.getSize()
setWindowState({ setWindowState({
width: width, width: width,
height: height, height: height,
isMaximized: mainWindow.isMaximized() isMaximized: mainWindow.isMaximized()
}) })
app.quit(); app.quit();
} }
} }