Skip to content

Commit

Permalink
Add missing fields to the copy
Browse files Browse the repository at this point in the history
Fixes #521
Fixes #522
  • Loading branch information
Belphemur committed Nov 21, 2020
1 parent 863fd9d commit 08bf747
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 7 deletions.
321 changes: 318 additions & 3 deletions .idea/.idea.SoundSwitch/.idea/contentModel.xml

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

4 changes: 2 additions & 2 deletions .idea/.idea.SoundSwitch/.idea/modules.xml

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

6 changes: 4 additions & 2 deletions SoundSwitch/Framework/Profile/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,20 @@ public bool RestoreDevices
/// </summary>
public Profile Copy()
{
return new Profile
return new()
{
AlsoSwitchDefaultDevice = AlsoSwitchDefaultDevice,
Communication = Communication,
Name = Name,
Playback = Playback,
Recording = Recording,
RestoreDevices = RestoreDevices,
Triggers = Triggers.Select(trigger => new Trigger.Trigger(trigger.Type)
{
HotKey = trigger.HotKey,
ApplicationPath = trigger.ApplicationPath,
WindowName = trigger.WindowName
WindowName = trigger.WindowName,
ShouldRestoreDevices = trigger.ShouldRestoreDevices
}).ToList()
};
}
Expand Down

0 comments on commit 08bf747

Please sign in to comment.