fix: disable unsolicited background UI automation

This commit is contained in:
2026-09-20 18:40:23 +08:00
parent 7bf994de88
commit e17124de59
7 changed files with 56 additions and 17 deletions
+1 -3
View File
@@ -25,6 +25,7 @@ public sealed class ServiceOptions
// Explicitly opt-in for a single, user-authorized Windows validation session.
// Production deployments remain read-only unless this local gate is enabled.
public bool EnableValidationOperations { get; init; }
public bool EnableListenerEvents { get; init; }
public bool PreventAutoLock { get; init; }
// Kept only so older service.json files can be loaded and rewritten by the tray.
@@ -34,9 +35,6 @@ public sealed class ServiceOptions
[JsonIgnore]
[Obsolete("Internal compatibility field; the value is ignored.")]
public string ListenerSession { get; init; } = "文件传输助手";
[JsonIgnore]
[Obsolete("Internal compatibility field; the value is ignored.")]
public bool EnableListenerEvents { get; init; }
public void Validate()
{