SEBWIN-226: Forgot to stop the action center activators on application termination.

This commit is contained in:
dbuechel 2019-03-28 09:29:21 +01:00
parent 0916dacb7f
commit 25022295e1

View file

@ -94,6 +94,7 @@ namespace SafeExamBrowser.Client.Operations
logger.Info("Terminating shell...");
StatusChanged?.Invoke(TextKey.OperationStatus_TerminateShell);
TerminateActivators();
TerminateNotifications();
TerminateSystemComponents();
@ -267,6 +268,17 @@ namespace SafeExamBrowser.Client.Operations
}
}
private void TerminateActivators()
{
if (actionCenterSettings.EnableActionCenter)
{
foreach (var activator in activators)
{
activator.Stop();
}
}
}
private void TerminateNotifications()
{
aboutController.Terminate();