Skip to content

Commit

Permalink
Settings can set Recording device.
Browse files Browse the repository at this point in the history
Select them and set the hotkeys for it. See #19
  • Loading branch information
Antoine Aflalo committed Sep 2, 2015
1 parent 656de9f commit 2bae78b
Show file tree
Hide file tree
Showing 4 changed files with 180 additions and 114 deletions.
5 changes: 1 addition & 4 deletions SoundSwitch/Model/AppModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ public bool SetCommunications
}
}

public string PlaybackHotKeysString => AppConfigs.Configuration.PlaybackHotKeys.ToString();
public string RecordingHotKeysString { get; }

#region Misc settings

/// <summary>
Expand Down Expand Up @@ -276,7 +273,7 @@ public bool SetHotkeyCombination(HotKeys hotkeys, AudioDeviceType deviceType)
if (!WindowsAPIAdapter.RegisterHotKey(hotkeys))
{
AppLogger.Log.Warn("Can't register new hotkeys", hotkeys);
ErrorTriggered?.Invoke(this, new ExceptionEvent(new Exception("Impossible to register HotKey: " + PlaybackHotKeysString)));
ErrorTriggered?.Invoke(this, new ExceptionEvent(new Exception("Impossible to register HotKey: " + hotkeys)));
return false;
}

Expand Down
11 changes: 0 additions & 11 deletions SoundSwitch/Model/IAppModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ public interface IAppModel
/// </summary>
bool SetCommunications { get; set; }

/// <summary>
/// A string repsenting the set Keyboard shortcut for Switch default Playback devices.
/// </summary>
string PlaybackHotKeysString { get; }


/// <summary>
/// A string repsenting the set Keyboard shortcut for Switch default Playback devices.
/// </summary>
string RecordingHotKeysString { get; }

/// <summary>
/// If the application runs at windows startup
/// </summary>
Expand Down
187 changes: 121 additions & 66 deletions SoundSwitch/UI/Forms/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2bae78b

Please sign in to comment.