We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5859c75 commit badcc39Copy full SHA for badcc39
lib/UI/popups/hotkeyInput.dart
@@ -47,12 +47,13 @@ class HotkeyInputDialog {
47
48
_onControllerData(int code, int? sliderValue, String name) {
49
if (_sliderMode) {
50
- if (_invert) sliderValue = 127 - sliderValue!;
+ if (sliderValue == null) return;
51
+ if (_invert) sliderValue = 127 - sliderValue;
52
code &= 0xffffff00;
53
if (code == _previousCode && previousSliderValue != sliderValue) {
54
//valid adjustment
55
name = name.substring(0, name.length - 2);
- name += sliderValue!.toRadixString(16).padLeft(2, '0');
56
+ name += sliderValue.toRadixString(16).padLeft(2, '0');
57
controller.text = name;
58
_hotkeyCode = code;
59
}
0 commit comments