mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
Lock EsclSecurityPolicy config if specified
This commit is contained in:
parent
dc07c8ef9e
commit
c27132c3b7
@ -4,6 +4,7 @@ using System.Text;
|
||||
using System.Xml;
|
||||
using NAPS2.Config.Model;
|
||||
using NAPS2.Config.ObsoleteTypes;
|
||||
using NAPS2.Escl;
|
||||
using NAPS2.Pdf;
|
||||
using NAPS2.Serialization;
|
||||
|
||||
@ -150,6 +151,10 @@ public class ConfigSerializer : VersionedSerializer<ConfigStorage<CommonConfig>>
|
||||
{
|
||||
storage.Set(x => x.DisableScannerSharing, true);
|
||||
}
|
||||
if (c.EsclSecurityPolicy != EsclSecurityPolicy.None)
|
||||
{
|
||||
storage.Set(x => x.EsclSecurityPolicy, c.EsclSecurityPolicy);
|
||||
}
|
||||
|
||||
void SetIfLocked<T>(Expression<Func<CommonConfig, T>> accessor, T value, string name)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user