Fix daemon version check
This commit is contained in:
@@ -301,6 +301,7 @@ ipcMain.on(Constants.IPC_Check_Daemon_Version + '_sync', (event, data) => {
|
|||||||
.then(code => {
|
.then(code => {
|
||||||
event.returnValue = {
|
event.returnValue = {
|
||||||
data: {
|
data: {
|
||||||
|
Success: true,
|
||||||
Valid: (code === 0),
|
Valid: (code === 0),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ class MountItems extends IPCContainer {
|
|||||||
Directory: this.props.directory,
|
Directory: this.props.directory,
|
||||||
StorageType: storageType,
|
StorageType: storageType,
|
||||||
Version: this.props.version
|
Version: this.props.version
|
||||||
});
|
}).data;
|
||||||
if (result.Success) {
|
if (result.Success) {
|
||||||
if (result.Valid) {
|
if (result.Valid) {
|
||||||
if (this.props.platform !== 'win32') {
|
if (this.props.platform !== 'win32') {
|
||||||
|
|||||||
Reference in New Issue
Block a user