mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Remove auto launch
This commit is contained in:
parent
22343e00ed
commit
d2eeb054d4
3 changed files with 6 additions and 59 deletions
10
src/main.ts
10
src/main.ts
|
@ -7,7 +7,6 @@ import "./extensions/plugin";
|
|||
import "./tray";
|
||||
import {createCustomWindow, createNativeWindow, createTabsHost} from "./window";
|
||||
import "./shortcuts";
|
||||
import AutoLaunch from "easy-auto-launch";
|
||||
|
||||
export var settings: any;
|
||||
export var customTitlebar: boolean;
|
||||
|
@ -26,16 +25,7 @@ if (process.platform == "linux") {
|
|||
}
|
||||
checkIfConfigExists();
|
||||
|
||||
var AutoLauncher = new AutoLaunch({
|
||||
name: 'ArmCord',
|
||||
});
|
||||
|
||||
app.whenReady().then(async () => {
|
||||
if (await getConfig("autoLaunch") == "true") {
|
||||
AutoLauncher.enable()
|
||||
} else {
|
||||
AutoLauncher.disable()
|
||||
}
|
||||
switch (await getConfig("windowStyle")) {
|
||||
case "default":
|
||||
createCustomWindow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue