Fix Linux settings

This commit is contained in:
2019-10-16 23:18:56 -05:00
parent f3c70072c1
commit ab5429d5e7

View File

@@ -233,7 +233,9 @@ class Configuration extends IPCContainer {
this.props.remoteSupported && this.props.remoteSupported &&
(item.label !== 'IsRemoteMount')) { (item.label !== 'IsRemoteMount')) {
const isRemoteMount = JSON.parse(itemList.find(s => s.label === 'IsRemoteMount').value); const isRemoteMount = JSON.parse(itemList.find(s => s.label === 'IsRemoteMount').value);
const enableRemoteMount = JSON.parse(itemList.find(s => s.label === 'EnableRemoteMount').value); const enableRemoteMount = !isRemoteMount &&
(this.props.Platform === 'win32') &&
JSON.parse(itemList.find(s => s.label === 'EnableRemoteMount').value);
return (item.label === 'RemoteHostNameOrIp') ? return (item.label === 'RemoteHostNameOrIp') ?
isRemoteMount : isRemoteMount :
(item.label === 'RemotePort') || (item.label === 'RemoteToken') ? (item.label === 'RemotePort') || (item.label === 'RemoteToken') ?