Skip to content

Commit 1611ad3

Browse files
committed
Fix ThemeData hashcode issue
1 parent 9b9704e commit 1611ad3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Flow.Launcher.Plugin/ThemeData.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace Flow.Launcher.Plugin;
1+
using System;
2+
3+
namespace Flow.Launcher.Plugin;
24

35
/// <summary>
46
/// Theme data model
@@ -60,7 +62,7 @@ public override bool Equals(object obj)
6062
/// <inheritdoc />
6163
public override int GetHashCode()
6264
{
63-
return Name?.GetHashCode() ?? 0;
65+
return HashCode.Combine(FileNameWithoutExtension, Name);
6466
}
6567

6668
/// <inheritdoc />

0 commit comments

Comments
 (0)