diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-08-04 18:25:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-04 18:25:35 -0500 |
| commit | d9c5aa6df4a140c7b6e2a1dcd6499bcd3091d99e (patch) | |
| tree | 3a68418b876a4f1dbed9c5aabedbd2644ce32277 /src/slskd/Common | |
| parent | bdd085700fa57cf8db0230139c8c639bf70d5ab9 (diff) | |
| parent | 219aa156446e2465783cc018510cd9a18e643bb7 (diff) | |
| download | slskd-d9c5aa6df4a140c7b6e2a1dcd6499bcd3091d99e.tar.gz | |
Merge pull request #1411 from slskd/debug-config
Fix bug preventing proper change detection when updating options with an enum type
Diffstat (limited to 'src/slskd/Common')
| -rw-r--r-- | src/slskd/Common/CommonExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Common/CommonExtensions.cs b/src/slskd/Common/CommonExtensions.cs index 44e3c034..ec76b745 100644 --- a/src/slskd/Common/CommonExtensions.cs +++ b/src/slskd/Common/CommonExtensions.cs @@ -116,7 +116,7 @@ namespace slskd differences.Add((prop, fqn, leftVal, rightVal)); } } - else if (propType.IsPrimitive || Nullable.GetUnderlyingType(propType) != null || new[] { typeof(string), typeof(decimal) }.Contains(propType)) + else if (propType.IsPrimitive || propType.IsEnum || Nullable.GetUnderlyingType(propType) != null || new[] { typeof(string), typeof(decimal) }.Contains(propType)) { if (!Equals(leftVal, rightVal)) { |
