mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 10:00:47 +01:00
Added finish side and notification
This commit is contained in:
@@ -4,6 +4,7 @@ import path from 'path';
|
||||
import { autoUpdater } from "electron-updater";
|
||||
import logger from 'electron-log';
|
||||
import { Platform, platform } from './components/platform';
|
||||
|
||||
logger.transports.console.format = "{h}:{i}:{s} {text}";
|
||||
logger.transports.file.getFile();
|
||||
logger.transports.file.resolvePath = () => path.join(app.getPath('userData'), "logs", "start.log");
|
||||
@@ -112,6 +113,10 @@ const createWindow = () => {
|
||||
mainWindow.on('close', () => {
|
||||
mainWindow.webContents.send('closeApp');
|
||||
});
|
||||
|
||||
ipcMain.on('openApp', () => {
|
||||
mainWindow.show();
|
||||
});
|
||||
};
|
||||
|
||||
// This method will be called when Electron has finished
|
||||
|
||||
Reference in New Issue
Block a user