public Task HandleAsync(ProfileDeletedEvent message, CancellationToken cancellationToken) { Profile = null; TriggerHotkeyPairs.Clear(); return(Task.CompletedTask); }
private void SetTriggerHotkeyPairs(HotkeyProfile profile) { TriggerHotkeyPairs.Clear(); foreach (var hotkey in profile.Hotkeys) { TriggerHotkeyPairs.Add(hotkey.Trigger.Key, hotkey); } }