Skip to content

Commit

Permalink
fix(HotKey::Recording): Disable hotkey for recording if can't registe…
Browse files Browse the repository at this point in the history
…r it.

Fixes SOUNDSWITCH-G
  • Loading branch information
Belphemur committed May 8, 2021
1 parent b61c347 commit 0a5da99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SoundSwitch/Model/AppModel.cs
Expand Up @@ -224,7 +224,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);
if (!RegisterHotKey(AppConfigs.Configuration.RecordingHotKey))
{
AppConfigs.Configuration.RecordingHotKey.Enabled = false;
AppConfigs.Configuration.Save();
}
if (!RegisterHotKey(AppConfigs.Configuration.MuteRecordingHotKey))
{
AppConfigs.Configuration.MuteRecordingHotKey.Enabled = false;
Expand Down

0 comments on commit 0a5da99

Please sign in to comment.