Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
|
224fdc093a |
6 changed files with 28 additions and 0 deletions
|
@ -17,6 +17,9 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
|
|||
{
|
||||
switch (key)
|
||||
{
|
||||
case Keys.Proctoring.ForceRaiseHandMessage:
|
||||
MapForceRaiseHandMessage(settings, value);
|
||||
break;
|
||||
case Keys.Proctoring.JitsiMeet.AllowChat:
|
||||
MapJitsiMeetAllowChat(settings, value);
|
||||
break;
|
||||
|
@ -71,6 +74,9 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
|
|||
case Keys.Proctoring.JitsiMeet.VideoMuted:
|
||||
MapJitsiMeetVideoMuted(settings, value);
|
||||
break;
|
||||
case Keys.Proctoring.ShowRaiseHand:
|
||||
MapShowRaiseHand(settings, value);
|
||||
break;
|
||||
case Keys.Proctoring.ShowTaskbarNotification:
|
||||
MapShowTaskbarNotification(settings, value);
|
||||
break;
|
||||
|
@ -128,6 +134,14 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
|
|||
}
|
||||
}
|
||||
|
||||
private void MapForceRaiseHandMessage(AppSettings settings, object value)
|
||||
{
|
||||
if (value is bool force)
|
||||
{
|
||||
settings.Proctoring.ForceRaiseHandMessage = force;
|
||||
}
|
||||
}
|
||||
|
||||
private void MapJitsiMeetAllowChat(AppSettings settings, object value)
|
||||
{
|
||||
if (value is bool allow)
|
||||
|
@ -272,6 +286,14 @@ namespace SafeExamBrowser.Configuration.ConfigurationData.DataMapping
|
|||
}
|
||||
}
|
||||
|
||||
private void MapShowRaiseHand(AppSettings settings, object value)
|
||||
{
|
||||
if (value is bool show)
|
||||
{
|
||||
settings.Proctoring.ShowRaiseHandNotification = show;
|
||||
}
|
||||
}
|
||||
|
||||
private void MapShowTaskbarNotification(AppSettings settings, object value)
|
||||
{
|
||||
if (value is bool show)
|
||||
|
|
|
@ -225,6 +225,8 @@ namespace SafeExamBrowser.Configuration.ConfigurationData
|
|||
|
||||
internal static class Proctoring
|
||||
{
|
||||
internal const string ForceRaiseHandMessage = "raiseHandButtonAlwaysPromptMessage";
|
||||
internal const string ShowRaiseHand = "raiseHandButtonShow";
|
||||
internal const string ShowTaskbarNotification = "showProctoringViewButton";
|
||||
internal const string WindowVisibility = "remoteProctoringViewShow";
|
||||
|
||||
|
|
|
@ -117,6 +117,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Controls.ActionCenter
|
|||
Icon.Content = IconResourceLoader.Load(LoweredIcon);
|
||||
Message.IsEnabled = true;
|
||||
NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandLowered);
|
||||
Popup.IsOpen = false;
|
||||
Text.Text = text.Get(TextKey.Notification_ProctoringHandLowered);
|
||||
}
|
||||
|
||||
|
|
|
@ -123,6 +123,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Controls.Taskbar
|
|||
Icon.Content = IconResourceLoader.Load(LoweredIcon);
|
||||
Message.IsEnabled = true;
|
||||
NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandLowered);
|
||||
Popup.IsOpen = false;
|
||||
}
|
||||
|
||||
private void ShowRaised()
|
||||
|
|
|
@ -117,6 +117,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Controls.ActionCenter
|
|||
Icon.Content = IconResourceLoader.Load(LoweredIcon);
|
||||
Message.IsEnabled = true;
|
||||
NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandLowered);
|
||||
Popup.IsOpen = false;
|
||||
Text.Text = text.Get(TextKey.Notification_ProctoringHandLowered);
|
||||
}
|
||||
|
||||
|
|
|
@ -124,6 +124,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Controls.Taskbar
|
|||
Icon.Content = IconResourceLoader.Load(LoweredIcon);
|
||||
Message.IsEnabled = true;
|
||||
NotificationButton.ToolTip = text.Get(TextKey.Notification_ProctoringHandLowered);
|
||||
Popup.IsOpen = false;
|
||||
}
|
||||
|
||||
private void ShowRaised()
|
||||
|
|
Loading…
Reference in a new issue