Fix scanning inputs upgrade using the wrong format (#805)
This commit is contained in:
parent
a531618c48
commit
18634dca1a
@ -493,19 +493,27 @@ class OptionsUtil {
|
||||
|
||||
const {modifier, middleMouse} = profileOptions.scanning;
|
||||
const scanningInputs = [];
|
||||
let modifierInput = '';
|
||||
switch (modifier) {
|
||||
case 'alt':
|
||||
case 'ctrl':
|
||||
case 'shift':
|
||||
case 'meta':
|
||||
scanningInputs.push(modifier);
|
||||
modifierInput = modifier;
|
||||
break;
|
||||
case 'none':
|
||||
scanningInputs.push('');
|
||||
modifierInput = '';
|
||||
break;
|
||||
}
|
||||
scanningInputs.push({
|
||||
include: modifierInput,
|
||||
exclude: ''
|
||||
});
|
||||
if (middleMouse) {
|
||||
scanningInputs.push('mouse2');
|
||||
scanningInputs.push({
|
||||
include: 'mouse2',
|
||||
exclude: ''
|
||||
});
|
||||
}
|
||||
profileOptions.scanning.inputs = scanningInputs;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user