Skip to content

Commit

Permalink
fix(Settings): Not being able to set hotkeys
Browse files Browse the repository at this point in the history
Because of wrongly casting the tuple from a value tuple to a normal tuple.

Fixes #565
  • Loading branch information
Belphemur committed Apr 3, 2021
1 parent 1e240be commit ac05bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SoundSwitch/UI/Forms/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ private void hotKeyControl_HotKeyChanged(object sender, HotKeyTextBox.Event e)
if (tuple == null)
return;

var newTuple = (tuple.Item1, control.HotKey);
var newTuple = new Tuple<HotKeyAction, HotKey>(tuple.Item1, control.HotKey);
hotKeyControl.Tag = newTuple;

AppModel.Instance.SetHotkeyCombination(newTuple.Item2, newTuple.Item1);
Expand Down

0 comments on commit ac05bcd

Please sign in to comment.