SEBWIN-104: Implemented new configuration key for the application log window.

This commit is contained in:
dbuechel 2019-01-11 09:16:14 +01:00
parent 704aea3a45
commit 3853244244
3 changed files with 15 additions and 3 deletions

View file

@ -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)

View file

@ -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;

View file

@ -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";