Skip to content

Commit

Permalink
SDA-4373: Reopen SDA automatically after save
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenTranHoangSym committed Oct 24, 2023
1 parent 1ef7c37 commit a272bed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/config-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/app/window-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,7 @@ export class WindowHandler {
if (shouldRelaunch) {
app.relaunch();
}
app.exit();
app.quit();
};

/**
Expand Down

0 comments on commit a272bed

Please sign in to comment.