Error handling

This commit is contained in:
Scott E. Graves
2018-10-02 22:59:33 -05:00
parent 7e82690f5e
commit c55020fe0f
11 changed files with 158 additions and 64 deletions

View File

@@ -434,6 +434,10 @@ ipcMain.on(Constants.IPC_Set_Config_Values, (event, data) => {
setConfigValue(0);
});
ipcMain.on(Constants.IPC_Shutdown, () => {
app.quit();
});
ipcMain.on(Constants.IPC_Unmount_Drive, (event, data) => {
helpers
.stopProcessByPID(data.PID)