mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 00:35:20 +03:00
Fix startup
This commit is contained in:
parent
9f6669378a
commit
92587affd0
2 changed files with 1 additions and 4 deletions
|
@ -24,7 +24,7 @@ const update = require('./globalUpdates');
|
||||||
const appUpdater = require('./appUpdater');
|
const appUpdater = require('./appUpdater');
|
||||||
const CliAutoComplete = require('./CliAutoComplete');
|
const CliAutoComplete = require('./CliAutoComplete');
|
||||||
const { SITLProcess } = require('./sitl');
|
const { SITLProcess } = require('./sitl');
|
||||||
;
|
|
||||||
process.on('uncaughtException', function (error) {
|
process.on('uncaughtException', function (error) {
|
||||||
if (process.env.NODE_ENV !== 'development') {
|
if (process.env.NODE_ENV !== 'development') {
|
||||||
GUI.log(i18n.getMessage('unexpectedError', error));
|
GUI.log(i18n.getMessage('unexpectedError', error));
|
||||||
|
|
|
@ -4,8 +4,6 @@ const path = require('path');
|
||||||
const Store = require('electron-store');
|
const Store = require('electron-store');
|
||||||
Store.initRenderer();
|
Store.initRenderer();
|
||||||
|
|
||||||
const { SITLProcess } = require('./sitl');
|
|
||||||
|
|
||||||
require('@electron/remote/main').initialize();
|
require('@electron/remote/main').initialize();
|
||||||
|
|
||||||
const usbBootloaderIds = [
|
const usbBootloaderIds = [
|
||||||
|
@ -154,7 +152,6 @@ app.on('ready', () => {
|
||||||
app.on('window-all-closed', () => {
|
app.on('window-all-closed', () => {
|
||||||
|
|
||||||
if (process.platform !== 'darwin') {
|
if (process.platform !== 'darwin') {
|
||||||
SITLProcess.stop();
|
|
||||||
app.quit();
|
app.quit();
|
||||||
}
|
}
|
||||||
console.log("We're closing...");
|
console.log("We're closing...");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue