Partial version detection
This commit is contained in:
@@ -93,11 +93,22 @@ class MountItems extends IPCContainer {
|
||||
this.props.errorHandler('Mount location is not set');
|
||||
} else {
|
||||
let allowAction = true;
|
||||
if (mount && (this.props.platform !== 'win32')) {
|
||||
const result = this.sendSyncRequest(Constants.IPC_Check_Mount_Location, {
|
||||
Location: location,
|
||||
if (mount) {
|
||||
let result = this.sendSyncRequest(Constants.IPC_Check_Daemon_Version, {
|
||||
StorageType: storageType,
|
||||
Version: this.props.version
|
||||
});
|
||||
if (!result.Success) {
|
||||
if (result.Success) {
|
||||
if (this.props.platform !== 'win32') {
|
||||
result = this.sendSyncRequest(Constants.IPC_Check_Mount_Location, {
|
||||
Location: location,
|
||||
});
|
||||
if (!result.Success) {
|
||||
allowAction = false;
|
||||
this.props.errorHandler(result.Error.toString());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
allowAction = false;
|
||||
this.props.errorHandler(result.Error.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user