You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop: Fixes #7018: Plugin API DirectoryPath edit problems when path contain spaces
This commit is contained in:
@ -467,9 +467,13 @@ class ConfigScreenComponent extends React.Component<any, any> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onPathChange = (event: any) => {
|
const onPathChange = (event: any) => {
|
||||||
const cmd = splitCmd(this.state.settings[key]);
|
if (md.subType === 'file_path_and_args') {
|
||||||
cmd[0] = event.target.value;
|
const cmd = splitCmd(this.state.settings[key]);
|
||||||
updateSettingValue(key, joinCmd(cmd));
|
cmd[0] = event.target.value;
|
||||||
|
updateSettingValue(key, joinCmd(cmd));
|
||||||
|
} else {
|
||||||
|
updateSettingValue(key, event.target.value);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const onArgsChange = (event: any) => {
|
const onArgsChange = (event: any) => {
|
||||||
|
Reference in New Issue
Block a user