mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
Merge pull request #1990 from NguyenTranHoangSym/SDA-4373
Sda 4373: Reopen SDA automatically after save
This commit is contained in:
commit
92c6df1914
@ -15,6 +15,7 @@ import {
|
|||||||
SDAEndReasonTypes,
|
SDAEndReasonTypes,
|
||||||
SDAUserSessionActionTypes,
|
SDAUserSessionActionTypes,
|
||||||
} from './bi/interface';
|
} from './bi/interface';
|
||||||
|
import { terminateC9Shell } from './c9-shell-handler';
|
||||||
import { appStats } from './stats';
|
import { appStats } from './stats';
|
||||||
|
|
||||||
const writeFile = util.promisify(fs.writeFile);
|
const writeFile = util.promisify(fs.writeFile);
|
||||||
@ -235,6 +236,7 @@ class Config {
|
|||||||
app.on('before-quit', async (event) => {
|
app.on('before-quit', async (event) => {
|
||||||
const id = powerSaveBlocker.start('prevent-app-suspension');
|
const id = powerSaveBlocker.start('prevent-app-suspension');
|
||||||
logger.info('config-handler: before-quit application is terminated');
|
logger.info('config-handler: before-quit application is terminated');
|
||||||
|
terminateC9Shell();
|
||||||
if (!this.didUpdateConfigFile) {
|
if (!this.didUpdateConfigFile) {
|
||||||
this.isUpdatingConfigFile = true;
|
this.isUpdatingConfigFile = true;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -2344,7 +2344,7 @@ export class WindowHandler {
|
|||||||
if (shouldRelaunch) {
|
if (shouldRelaunch) {
|
||||||
app.relaunch();
|
app.relaunch();
|
||||||
}
|
}
|
||||||
app.exit();
|
app.quit();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user