Fix for Warning CA1822 :

Severity Code Description Project File Line Suppression State
Warning CA1822 Member 'ConvertHotkey' does not access instance data and can be marked as static PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\SettingsWatcher.cs 85 Active
This commit is contained in:
ryanbodrug-microsoft 2020-06-17 19:34:59 -07:00
parent ba03a134da
commit fd6525a9de

View File

@ -82,7 +82,7 @@ namespace PowerLauncher
Monitor.Exit(_watcher);
}
private string ConvertHotkey(HotkeySettings hotkey)
private static string ConvertHotkey(HotkeySettings hotkey)
{
Key key = KeyInterop.KeyFromVirtualKey(hotkey.Code);
HotkeyModel model = new HotkeyModel(hotkey.Alt, hotkey.Shift, hotkey.Win, hotkey.Ctrl, key);