formatting
This commit is contained in:
parent
0b165e64bc
commit
b7a0d1face
30
src/tray.ts
30
src/tray.ts
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue