fix: crash when user click a specific spot of shortcut ui (closes #495)
This commit is contained in:
1 parent
c927920070
commit
959a8aea55
1 file changed
+6
@@ -23,6 +23,12 @@ class CustomRecorderControl: RecorderControl, RecorderControlDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
override func clearAndEndRecording() {
|
||||
if clearable {
|
||||
super.clearAndEndRecording()
|
||||
}
|
||||
}
|
||||
|
||||
// only allow modifiers: ⌥ -> valid, e -> invalid, ⌥e -> invalid
|
||||
func recorderControl(_ aControl: RecorderControl, canRecord aShortcut: Shortcut) -> Bool {
|
||||
if !clearable && aShortcut.keyCode != .none {
|
||||
|
||||
Reference in new issue
Block a user