From 144c3ba75228b02527a6f50e30b2b5ee747de698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Thu, 22 Aug 2024 16:26:58 +0200 Subject: [PATCH] Minor refactoring. --- SafeExamBrowser.Configuration/Cryptography/KeyGenerator.cs | 2 ++ .../ScreenProctoring/ScreenProctoringImplementation.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SafeExamBrowser.Configuration/Cryptography/KeyGenerator.cs b/SafeExamBrowser.Configuration/Cryptography/KeyGenerator.cs index 93a56129..75df5b92 100644 --- a/SafeExamBrowser.Configuration/Cryptography/KeyGenerator.cs +++ b/SafeExamBrowser.Configuration/Cryptography/KeyGenerator.cs @@ -112,6 +112,8 @@ namespace SafeExamBrowser.Configuration.Cryptography browserExamKey = key; } + + logger.Debug("Successfully calculated browser exam key using simplified calculation."); } } } diff --git a/SafeExamBrowser.Proctoring/ScreenProctoring/ScreenProctoringImplementation.cs b/SafeExamBrowser.Proctoring/ScreenProctoring/ScreenProctoringImplementation.cs index 550236ea..abf4975c 100644 --- a/SafeExamBrowser.Proctoring/ScreenProctoring/ScreenProctoringImplementation.cs +++ b/SafeExamBrowser.Proctoring/ScreenProctoring/ScreenProctoringImplementation.cs @@ -191,11 +191,11 @@ namespace SafeExamBrowser.Proctoring.ScreenProctoring } } - private void UpdateNotification(bool live) + private void UpdateNotification(bool active) { CanActivate = false; - if (live) + if (active) { IconResource = new XamlIconResource { Uri = new Uri("pack://application:,,,/SafeExamBrowser.UserInterface.Desktop;component/Images/ScreenProctoring_Active.xaml") }; Tooltip = text.Get(TextKey.Notification_ProctoringActiveTooltip);