Fix daemon version check

This commit is contained in:
Scott E. Graves
2019-05-24 14:22:19 -05:00
parent 234785180a
commit 43598a08bb
2 changed files with 2 additions and 1 deletions

View File

@@ -301,6 +301,7 @@ ipcMain.on(Constants.IPC_Check_Daemon_Version + '_sync', (event, data) => {
.then(code => {
event.returnValue = {
data: {
Success: true,
Valid: (code === 0),
},
};

View File

@@ -98,7 +98,7 @@ class MountItems extends IPCContainer {
Directory: this.props.directory,
StorageType: storageType,
Version: this.props.version
});
}).data;
if (result.Success) {
if (result.Valid) {
if (this.props.platform !== 'win32') {