Slight tweaks to app.ts, added environment var that displays renderer logs in console

This commit is contained in:
Core 2022-01-09 01:20:08 +00:00
parent 7318aa8aab
commit 6dad815d48
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
3 changed files with 15 additions and 21 deletions

View file

@ -1,15 +1,17 @@
import * as electron from 'electron';
export class App {
constructor() {
export class AppEvents {
constructor(store: any) {
console.log('App started');
AppEvents.start(store);
}
/**
* Handles all actions that occur for the app on start (Mainly commandline arguments)
* @returns {void}
*/
public start(store: any): void {
private static start(store: any): void {
console.log('App started');
switch (store.get("visual.hw_acceleration")) {
@ -38,7 +40,7 @@ export class App {
}
}
public stop() {
public quit() {
console.log('App stopped');
}