Skip to content

Commit

Permalink
fix(Microphone::Mute): Stop telling user that the microphone mute hot…
Browse files Browse the repository at this point in the history
…key couldn't be registered

This happens so often, this will disable the feature automatically instead.
  • Loading branch information
Belphemur committed May 8, 2021
1 parent ab6502d commit 30d021f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SoundSwitch/Model/AppModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ public void InitializeMain()
ProfileManager = new ProfileManager(new WindowMonitor(), AudioSwitcher.Instance, ActiveAudioDeviceLister, TrayIcon.ShowError, new TriggerFactory(), _notificationManager);
RegisterHotKey(AppConfigs.Configuration.PlaybackHotKey);
RegisterHotKey(AppConfigs.Configuration.RecordingHotKey);
RegisterHotKey(AppConfigs.Configuration.MuteRecordingHotKey);
if (!RegisterHotKey(AppConfigs.Configuration.MuteRecordingHotKey))
{
AppConfigs.Configuration.MuteRecordingHotKey.Enabled = false;
AppConfigs.Configuration.Save();
}

WindowsAPIAdapter.HotKeyPressed += HandleHotkeyPress;

Expand Down

0 comments on commit 30d021f

Please sign in to comment.