We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1393d0 commit 795a5cbCopy full SHA for 795a5cb
1 file changed
src/UniGetUI.PackageEngine.Serializable/SerializableInstallationOptions.cs
@@ -51,6 +51,20 @@ public override void LoadFromJson(JsonNode data)
51
this.SkipMinorUpdates = data[nameof(SkipMinorUpdates)]?.GetVal<bool>() ?? false;
52
}
53
54
+ public bool DiffersFromDefault()
55
+ {
56
+ return SkipHashCheck is not false ||
57
+ InteractiveInstallation is not false ||
58
+ RunAsAdministrator is not false ||
59
+ PreRelease is not false ||
60
+ SkipMinorUpdates is not false ||
61
+ Architecture.Any() ||
62
+ InstallationScope.Any() ||
63
+ CustomParameters.Where(x => x != "").Any() ||
64
+ CustomInstallLocation.Any() ||
65
+ Version.Any();
66
+ }
67
+
68
public SerializableInstallationOptions() : base()
69
{
70
0 commit comments