closeAll is added
This commit is contained in:
parent
a45fef82ee
commit
d6ad9600e3
|
@ -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> {
|
||||
|
|
|
@ -20,6 +20,7 @@ export class AnimationQueue {
|
|||
|
||||
clear(): void {
|
||||
this.__queueObjects = [];
|
||||
this.__running = false;
|
||||
}
|
||||
|
||||
private __animate(o: QueueObject): void {
|
||||
|
|
Loading…
Reference in New Issue
Block a user