Skip to content

Commit 30d021f

Browse files
committed
fix(Microphone::Mute): Stop telling user that the microphone mute hotkey couldn't be registered
This happens so often, this will disable the feature automatically instead.
1 parent ab6502d commit 30d021f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

SoundSwitch/Model/AppModel.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,11 @@ public void InitializeMain()
225225
ProfileManager = new ProfileManager(new WindowMonitor(), AudioSwitcher.Instance, ActiveAudioDeviceLister, TrayIcon.ShowError, new TriggerFactory(), _notificationManager);
226226
RegisterHotKey(AppConfigs.Configuration.PlaybackHotKey);
227227
RegisterHotKey(AppConfigs.Configuration.RecordingHotKey);
228-
RegisterHotKey(AppConfigs.Configuration.MuteRecordingHotKey);
228+
if (!RegisterHotKey(AppConfigs.Configuration.MuteRecordingHotKey))
229+
{
230+
AppConfigs.Configuration.MuteRecordingHotKey.Enabled = false;
231+
AppConfigs.Configuration.Save();
232+
}
229233

230234
WindowsAPIAdapter.HotKeyPressed += HandleHotkeyPress;
231235

0 commit comments

Comments
 (0)