Skip to content

Commit 28afdec

Browse files
authored
Merge pull request #164 from Accedia/develop
Develop
2 parents 860387b + ed94d93 commit 28afdec

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

electron-app/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

electron-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "fit-mitchell-rpa",
33
"appname": "REV Import Technology",
44
"productName": "REV Import Technology",
5-
"version": "1.5.93",
5+
"version": "1.5.94",
66
"homepage": "./",
77
"main": "./dist/main.js",
88
"description": "Automation for CCC by FIT",

electron-app/src/utils/window_manager.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ class WindowManager {
6969
public startLoading = (): void => {
7070
console.log('starting loading');
7171
const shouldOpenVBS = process && process.argv.some((url) => url.includes('openVBS'))
72-
this.loadingWindow = new BrowserWindow({...WINDOW_CONFIG.loading,
72+
this.loadingWindow = new BrowserWindow({
73+
...WINDOW_CONFIG.loading,
7374
show: shouldOpenVBS ? false : true
7475
});
75-
if(shouldOpenVBS){
76+
if (shouldOpenVBS) {
7677
this.loadingWindow.minimize();
7778
}
7879
this.loadLoadingWindowContent();
@@ -85,6 +86,10 @@ class WindowManager {
8586
console.log(`Child process exited with code ${code}`);
8687
app.quit();
8788
});
89+
bat.on('error', (code) => {
90+
dialog.showErrorBox('Error', `The specified file was not found: ${fitMitchellCloudPath}, Error code : ${code}`);
91+
app.quit();
92+
})
8893
return;
8994
} catch (error) {
9095
dialog.showErrorBox('Error', 'The specified file was not found: C:\\FIT-Mitchell-Cloud-RO-Import-Tool\\FIT.bat');

0 commit comments

Comments
 (0)