1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-20 10:13:23 +00:00

get sync status. clear sync cache

This commit is contained in:
Kyle Spearrin
2018-05-03 15:46:20 -04:00
parent 1632af3e22
commit e40ee1e3a8
9 changed files with 47 additions and 3 deletions

View File

@@ -25,6 +25,9 @@ export class MessagingMain {
this.scheduleNextSync();
break;
case 'cancelDirSync':
this.windowMain.win.webContents.send('messagingService', {
command: 'syncScheduleStopped',
});
if (this.syncTimeout) {
global.clearTimeout(this.syncTimeout);
}
@@ -35,6 +38,10 @@ export class MessagingMain {
}
private scheduleNextSync() {
this.windowMain.win.webContents.send('messagingService', {
command: 'syncScheduleStarted',
});
if (this.syncTimeout) {
global.clearTimeout(this.syncTimeout);
}