mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
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:
parent
ba03a134da
commit
fd6525a9de
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user