File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
Flow.Launcher.Infrastructure/UserSettings Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 1
- using Flow . Launcher . Plugin ;
1
+ using System ;
2
+ using Flow . Launcher . Plugin ;
2
3
3
4
namespace Flow . Launcher . Infrastructure . UserSettings
4
5
{
5
6
public class CustomPluginHotkey : BaseModel
6
7
{
7
8
public string Hotkey { get ; set ; }
8
9
public string ActionKeyword { get ; set ; }
10
+
11
+ public CustomPluginHotkey ( string hotkey , string actionKeyword )
12
+ {
13
+ Hotkey = hotkey ;
14
+ ActionKeyword = actionKeyword ;
15
+ }
16
+
17
+ public override bool Equals ( object other )
18
+ {
19
+ if ( other is CustomPluginHotkey otherHotkey )
20
+ {
21
+ return Hotkey == otherHotkey . Hotkey && ActionKeyword == otherHotkey . ActionKeyword ;
22
+ }
23
+
24
+ return false ;
25
+ }
26
+
27
+ public override int GetHashCode ( )
28
+ {
29
+ return HashCode . Combine ( Hotkey , ActionKeyword ) ;
30
+ }
9
31
}
10
32
}
You can’t perform that action at this time.
0 commit comments