We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160ec8a commit 4d259bbCopy full SHA for 4d259bb
1 file changed
SharpIppNextServer/Services/PrinterService.cs
@@ -424,8 +424,8 @@ bool IsRequired(string attributeName)
424
MediaInfo = "my black color",
425
MediaOrderCount = 1
426
},
427
- PrintColorModeDefault = options.PrintColorModes.FirstOrDefault(),
428
- PrintColorModeSupported = options.PrintColorModes
+ PrintColorModeDefault = !IsRequired(PrinterAttribute.PrintColorModeDefault) ? null : options.PrintColorModes.FirstOrDefault(),
+ PrintColorModeSupported = !IsRequired(PrinterAttribute.PrintColorModeSupported) ? null : options.PrintColorModes
429
};
430
}
431
0 commit comments