From 38532442448726941d47c57ae3a3032f8d7e25e6 Mon Sep 17 00:00:00 2001 From: dbuechel Date: Fri, 11 Jan 2019 09:16:14 +0100 Subject: [PATCH] SEBWIN-104: Implemented new configuration key for the application log window. --- .../ConfigurationData/DataMapper.UserInterface.cs | 8 ++++++++ .../ConfigurationData/DataMapper.cs | 9 ++++++--- SafeExamBrowser.Configuration/ConfigurationData/Keys.cs | 1 + 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataMapper.UserInterface.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataMapper.UserInterface.cs index a54331d5..f7ba0a23 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/DataMapper.UserInterface.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/DataMapper.UserInterface.cs @@ -12,6 +12,14 @@ namespace SafeExamBrowser.Configuration.ConfigurationData { internal partial class DataMapper { + private void MapApplicationLog(Settings settings, object value) + { + if (value is bool allow) + { + settings.Taskbar.AllowApplicationLog = allow; + } + } + private void MapClock(Settings settings, object value) { if (value is bool show) diff --git a/SafeExamBrowser.Configuration/ConfigurationData/DataMapper.cs b/SafeExamBrowser.Configuration/ConfigurationData/DataMapper.cs index 0ae12ecf..faf9867e 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/DataMapper.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/DataMapper.cs @@ -111,15 +111,18 @@ namespace SafeExamBrowser.Configuration.ConfigurationData case Keys.Input.Mouse.EnableRightMouse: MapEnableRightMouse(settings, value); break; - case Keys.UserInterface.ShowClock: - MapClock(settings, value); - break; case Keys.UserInterface.AllowKeyboardLayout: MapKeyboardLayout(settings, value); break; + case Keys.UserInterface.AllowLog: + MapApplicationLog(settings, value); + break; case Keys.UserInterface.AllowWirelessNetwork: MapWirelessNetwork(settings, value); break; + case Keys.UserInterface.ShowClock: + MapClock(settings, value); + break; case Keys.UserInterface.UserInterfaceMode: MapUserInterfaceMode(settings, value); break; diff --git a/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs b/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs index dd8b8d9d..f1994b9a 100644 --- a/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs +++ b/SafeExamBrowser.Configuration/ConfigurationData/Keys.cs @@ -99,6 +99,7 @@ namespace SafeExamBrowser.Configuration.ConfigurationData internal static class UserInterface { internal const string AllowKeyboardLayout = "showInputLanguage"; + internal const string AllowLog = "showLogButton"; internal const string AllowWirelessNetwork = "allowWlan"; internal const string ShowClock = "showTime"; internal const string UserInterfaceMode = "touchOptimized";