mirror of https://github.com/laurent22/joplin.git
Desktop: Fixes #7018: Plugin API DirectoryPath edit problems when path contain spaces
parent
f4f96cfe89
commit
4efb6003dc
|
@ -467,9 +467,13 @@ class ConfigScreenComponent extends React.Component<any, any> {
|
|||
};
|
||||
|
||||
const onPathChange = (event: any) => {
|
||||
if (md.subType === 'file_path_and_args') {
|
||||
const cmd = splitCmd(this.state.settings[key]);
|
||||
cmd[0] = event.target.value;
|
||||
updateSettingValue(key, joinCmd(cmd));
|
||||
} else {
|
||||
updateSettingValue(key, event.target.value);
|
||||
}
|
||||
};
|
||||
|
||||
const onArgsChange = (event: any) => {
|
||||
|
|
Loading…
Reference in New Issue