SEBWIN-226: Forgot to stop the action center activators on application termination.
This commit is contained in:
parent
0916dacb7f
commit
25022295e1
1 changed files with 12 additions and 0 deletions
|
@ -94,6 +94,7 @@ namespace SafeExamBrowser.Client.Operations
|
||||||
logger.Info("Terminating shell...");
|
logger.Info("Terminating shell...");
|
||||||
StatusChanged?.Invoke(TextKey.OperationStatus_TerminateShell);
|
StatusChanged?.Invoke(TextKey.OperationStatus_TerminateShell);
|
||||||
|
|
||||||
|
TerminateActivators();
|
||||||
TerminateNotifications();
|
TerminateNotifications();
|
||||||
TerminateSystemComponents();
|
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()
|
private void TerminateNotifications()
|
||||||
{
|
{
|
||||||
aboutController.Terminate();
|
aboutController.Terminate();
|
||||||
|
|
Loading…
Reference in a new issue