mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add constructor for CustomPluginHotkey
This commit is contained in:
parent
4fcc12d717
commit
5c2127ec52
1 changed files with 23 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
using Flow.Launcher.Plugin;
|
using System;
|
||||||
|
using Flow.Launcher.Plugin;
|
||||||
|
|
||||||
namespace Flow.Launcher.Infrastructure.UserSettings
|
namespace Flow.Launcher.Infrastructure.UserSettings
|
||||||
{
|
{
|
||||||
|
|
@ -6,5 +7,26 @@ namespace Flow.Launcher.Infrastructure.UserSettings
|
||||||
{
|
{
|
||||||
public string Hotkey { get; set; }
|
public string Hotkey { get; set; }
|
||||||
public string ActionKeyword { get; set; }
|
public string ActionKeyword { get; set; }
|
||||||
|
|
||||||
|
public CustomPluginHotkey(string hotkey, string actionKeyword)
|
||||||
|
{
|
||||||
|
Hotkey = hotkey;
|
||||||
|
ActionKeyword = actionKeyword;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool Equals(object other)
|
||||||
|
{
|
||||||
|
if (other is CustomPluginHotkey otherHotkey)
|
||||||
|
{
|
||||||
|
return Hotkey == otherHotkey.Hotkey && ActionKeyword == otherHotkey.ActionKeyword;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override int GetHashCode()
|
||||||
|
{
|
||||||
|
return HashCode.Combine(Hotkey, ActionKeyword);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue