WingMan – Diff between revs 21 and 24
?pathlinks?
Rev 21 | Rev 24 | |||
---|---|---|---|---|
Line 67... | Line 67... | |||
67 | // Break the link and dispose it. |
67 | // Break the link and dispose it. |
|
68 | KeyComboDataFlowLink?.Dispose(); |
68 | KeyComboDataFlowLink?.Dispose(); |
|
69 | KeyComboDataFlowLink = null; |
69 | KeyComboDataFlowLink = null; |
|
Line 70... | Line 70... | |||
70 | |
70 | |
|
- | 71 | // Create a sliding window of size equal to the longest key combination. |
||
- | 72 | if (!RemoteKeyBindings.Bindings.Any()) |
||
- | 73 | return; |
||
- | 74 | |
||
- | 75 | var remoteKeyBindings = RemoteKeyBindings.Bindings.Where(binding => binding.Keys.Any()).ToList(); |
||
- | 76 | if (!remoteKeyBindings.Any()) |
||
- | 77 | return; |
||
71 | // Create a sliding window of size equal to the longest key combination. |
78 | |
|
72 | var maxKeyComboLength = RemoteKeyBindings.Bindings.Max(binding => binding.Keys.Count); |
79 | var maxKeyComboLength = remoteKeyBindings.Max(binding => binding.Keys.Count); |
|
73 | if (maxKeyComboLength <= 0) |
80 | if (maxKeyComboLength <= 0) |
|
Line 74... | Line 81... | |||
74 | return; |
81 | return; |
|
75 | |
82 | |