Merge pull request #1990 from NguyenTranHoangSym/SDA-4373

Sda 4373: Reopen SDA automatically after save
This commit is contained in:
NguyenTranHoangSym 2023-10-25 08:55:00 +07:00 committed by GitHub
commit 92c6df1914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import {
SDAEndReasonTypes,
SDAUserSessionActionTypes,
} from './bi/interface';
import { terminateC9Shell } from './c9-shell-handler';
import { appStats } from './stats';
const writeFile = util.promisify(fs.writeFile);
@ -235,6 +236,7 @@ class Config {
app.on('before-quit', async (event) => {
const id = powerSaveBlocker.start('prevent-app-suspension');
logger.info('config-handler: before-quit application is terminated');
terminateC9Shell();
if (!this.didUpdateConfigFile) {
this.isUpdatingConfigFile = true;
event.preventDefault();

View File

@ -2344,7 +2344,7 @@ export class WindowHandler {
if (shouldRelaunch) {
app.relaunch();
}
app.exit();
app.quit();
};
/**