closeAll is added

This commit is contained in:
crusader 2020-12-02 17:14:32 +09:00
parent a45fef82ee
commit d6ad9600e3
2 changed files with 12 additions and 0 deletions

View File

@ -201,6 +201,17 @@ export class NotificationService {
});
}
closeAll(): void {
this.__animationQueue.clear();
this.__activated.forEach(a => {
a.browserWindow.close();
});
this.__activated = [];
this.__delayQueue = [];
this.__closed.clear();
this.__windowPooler.closeAll();
}
private __show(
notification: Notification
): Promise<Electron.BrowserWindow | undefined> {

View File

@ -20,6 +20,7 @@ export class AnimationQueue {
clear(): void {
this.__queueObjects = [];
this.__running = false;
}
private __animate(o: QueueObject): void {