Linux / OS X changes
This commit is contained in:
@@ -74,6 +74,7 @@ class MountItems extends Component {
|
||||
ipcRenderer.send(Constants.IPC_Mount_Drive, {
|
||||
Directory: this.props.directory,
|
||||
Location: location,
|
||||
NoConsoleSupported: this.props.noConsoleSupported,
|
||||
StorageType: storageType,
|
||||
Version: this.props.version,
|
||||
});
|
||||
@@ -145,7 +146,7 @@ class MountItems extends Component {
|
||||
};
|
||||
|
||||
onUnmountDriveReply = (event, arg) => {
|
||||
if ((this.props.platform === 'win32') && arg && arg.data && !arg.data.Expected && arg.data.Location && this.props[arg.data.StorageType.toLowerCase()].AutoRestart) {
|
||||
if (arg && arg.data && !arg.data.Expected && arg.data.Location && this.props[arg.data.StorageType.toLowerCase()].AutoRestart) {
|
||||
this.handleMountUnMount(arg.data.StorageType, true, arg.data.Location)
|
||||
} else {
|
||||
this.detectMounts();
|
||||
|
||||
Reference in New Issue
Block a user