SiaPrime changes

This commit is contained in:
Scott E. Graves
2018-11-07 14:55:53 -06:00
parent ce55edfb3a
commit 9640a0805c
5 changed files with 22 additions and 8 deletions

View File

@@ -254,6 +254,13 @@ ipcMain.on(Constants.IPC_Detect_Mounts, (event, data) => {
.then((results) => {
let hsLocation = results.Hyperspace.Location;
let siaLocation = results.Sia.Location;
if (!results.SiaPrime) {
results.SiaPrime = {
Active: false,
Location: '',
PID: -1,
};
}
let siaPrimeLocation = results.SiaPrime.Location;
if (os.platform() === 'win32') {
hsLocation = hsLocation.toUpperCase();