Made touchscreen a machine setting rather than a user setting
This commit is contained in:
parent
9e80776dfe
commit
27860fc9ea
7 changed files with 57 additions and 38 deletions
|
|
@ -37,12 +37,13 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
public static class ApplicationSettingsKey
|
||||
{
|
||||
public const string SuppressAuthPanel = nameof(SuppressAuthPanel);
|
||||
public const string ApplicationDisplayMode = nameof(ApplicationDisplayMode);
|
||||
public const string DesktopPosition = nameof(DesktopPosition);
|
||||
public const string HardwareHasCamera = nameof(HardwareHasCamera);
|
||||
public const string HideGCodeWarning = nameof(HideGCodeWarning);
|
||||
public const string DesktopPosition = nameof(DesktopPosition);
|
||||
public const string WindowSize = nameof(WindowSize);
|
||||
public const string MainWindowMaximized = nameof(MainWindowMaximized);
|
||||
public const string SuppressAuthPanel = nameof(SuppressAuthPanel);
|
||||
public const string WindowSize = nameof(WindowSize);
|
||||
}
|
||||
|
||||
public class ApplicationSettings
|
||||
|
|
@ -73,6 +74,14 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
private string oemName = null;
|
||||
|
||||
public bool IsTouchScreen
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.get(ApplicationSettingsKey.ApplicationDisplayMode) == "touchscreen";
|
||||
}
|
||||
}
|
||||
|
||||
public string GetOEMName()
|
||||
{
|
||||
if (oemName == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue