Disable camera on desktop
- Issue MatterHackers/MCCentral#3051 Camera Monitoring should only be visible if system supports it
This commit is contained in:
parent
718d2b00c7
commit
8322cd092d
1 changed files with 5 additions and 3 deletions
|
|
@ -56,11 +56,12 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
this.VAnchor = VAnchor.Fit;
|
||||
this.theme = theme;
|
||||
|
||||
var configureIcon = AggContext.StaticData.LoadIcon("fa-cog_16.png", IconColor.Raw);
|
||||
|
||||
#if __ANDROID__
|
||||
// Camera Monitoring
|
||||
bool hasCamera = true || ApplicationSettings.Instance.get(ApplicationSettingsKey.HardwareHasCamera) == "true";
|
||||
|
||||
var configureIcon = AggContext.StaticData.LoadIcon("fa-cog_16.png", IconColor.Raw);
|
||||
|
||||
var previewButton = new IconButton(configureIcon, theme)
|
||||
{
|
||||
ToolTipText = "Configure Camera View".Localize()
|
||||
|
|
@ -84,6 +85,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
previewButton,
|
||||
AggContext.StaticData.LoadIcon("camera-24x24.png", 24, 24))
|
||||
);
|
||||
#endif
|
||||
|
||||
// Print Notifications
|
||||
var configureNotificationsButton = new IconButton(configureIcon, theme)
|
||||
|
|
@ -420,7 +422,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
[Conditional("DEBUG")]
|
||||
private void GenerateLocalizationValidationFile()
|
||||
{
|
||||
#if ! __ANDROID__
|
||||
#if !__ANDROID__
|
||||
if (AggContext.StaticData is FileSystemStaticData fileSystemStaticData)
|
||||
{
|
||||
char currentChar = 'A';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue