Linux / OS X changes
This commit is contained in:
@@ -588,7 +588,10 @@ class App extends Component {
|
||||
this.state.LocationsLookup[selectedVersion].config_support;
|
||||
|
||||
const allowSiaPrime = this.state.LocationsLookup[selectedVersion] &&
|
||||
this.state.LocationsLookup[selectedVersion].siaprime_support;
|
||||
this.state.LocationsLookup[selectedVersion].siaprime_support;
|
||||
|
||||
const noConsoleSupported = this.state.LocationsLookup[selectedVersion] &&
|
||||
this.state.LocationsLookup[selectedVersion].no_console_supported;
|
||||
|
||||
const showDependencies = missingDependencies &&
|
||||
!this.state.DownloadActive;
|
||||
@@ -691,6 +694,7 @@ class App extends Component {
|
||||
<MountItems {...providerProps}
|
||||
allowConfig={allowConfig}
|
||||
allowSiaPrime={allowSiaPrime}
|
||||
noConsoleSupported={noConsoleSupported}
|
||||
autoMountChanged={this.handleAutoMountChanged}
|
||||
autoMountProcessed={this.notifyAutoMountProcessed}
|
||||
autoRestartChanged={this.handleAutoRestartChanged}
|
||||
|
||||
@@ -15,6 +15,12 @@ exports.PROVIDER_LIST = [
|
||||
'SiaPrime'
|
||||
];
|
||||
|
||||
exports.PROVIDER_ARG = {
|
||||
hyperspace: '-hs',
|
||||
sia: '',
|
||||
siaprime: '-sp'
|
||||
};
|
||||
|
||||
exports.IPC_Check_Dependency_Installed = 'check_dependency_installed';
|
||||
exports.IPC_Check_Dependency_Installed_Reply = 'check_dependency_installed';
|
||||
|
||||
|
||||
@@ -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