Skip to content

Commit 340f2db

Browse files
committed
fix: closing a dialog window when first initializing
Signed-off-by: Pawel Psztyc <[email protected]>
1 parent 163d3aa commit 340f2db

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/io/TelemetryConsent.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,8 @@ export class TelemetryConsent {
6262
async pageHandler() {
6363
await fs.writeFile(this.lockFile, 'Do not remove this file. It prohibits showing the analytics dialog.');
6464
this.resolve();
65+
if (this.loader && !this.loader.isDestroyed()) {
66+
this.loader.close();
67+
}
6568
}
6669
}

src/io/defaults/DataStore.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ export class DataStore {
169169
ipcMain.removeAllListeners('data-transport-ready');
170170
ipcMain.removeAllListeners('data-receiver-ready');
171171
ipcMain.removeAllListeners('db-error');
172+
if (this.loader && !this.loader.isDestroyed()) {
173+
this.loader.close();
174+
}
172175

173176
await fs.writeFile(this.lockFile, 'Do not remove this file. Removing it may cause inconsistency in the data store.');
174177
const tmpExists = await fs.pathExists(this.migrationExport);

0 commit comments

Comments
 (0)