예제 #1
0
        private async Task DeleteIfExistsAsync(Hotkey hotkey)
        {
            if (CurrentProfile.DeleteHotkeyIfExisting(hotkey))
            {
                await _profileManager.SaveProfileAsync(CurrentProfile).ConfigureAwait(false);

                await _eventAggregator.PublishOnUIThreadAsync(new HotkeyModifiedEvent
                {
                    Hotkey        = hotkey,
                    ModifiedEvent = EHotkeyModifiedEvent.Deleted
                });
            }
        }