From f77181ab258e8316ab70acbfd1c93096e7e762e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 12 Jul 2021 14:01:18 +0200 Subject: [PATCH] SEBWIN-450: Reverted change regarding window visibility. --- .../ConfigurationData/DataProcessor.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataProcessor.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataProcessor.cs index ffb84b28..45790129 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/DataProcessor.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/DataProcessor.cs @@ -12,6 +12,7 @@ using System.IO; using System.Security.Cryptography; using SafeExamBrowser.Settings; using SafeExamBrowser.Settings.Applications; +using SafeExamBrowser.Settings.Proctoring; namespace SafeExamBrowser.Configuration.ConfigurationData { @@ -68,6 +69,16 @@ namespace SafeExamBrowser.Configuration.ConfigurationData private void InitializeProctoringSettings(AppSettings settings) { settings.Proctoring.Enabled = settings.Proctoring.JitsiMeet.Enabled || settings.Proctoring.Zoom.Enabled; + + if (settings.Proctoring.JitsiMeet.Enabled && !settings.Proctoring.JitsiMeet.ReceiveVideo) + { + settings.Proctoring.WindowVisibility = WindowVisibility.Hidden; + } + + if (settings.Proctoring.Zoom.Enabled && !settings.Proctoring.Zoom.ReceiveVideo) + { + settings.Proctoring.WindowVisibility = WindowVisibility.Hidden; + } } private void RemoveLegacyBrowsers(AppSettings settings)