Fix missing providers

This commit is contained in:
2021-02-23 14:03:09 -06:00
parent e77c321deb
commit 95b393b203

View File

@@ -26,6 +26,16 @@ const addListeners = ipcMain => {
data.Version = -1; data.Version = -1;
} }
for (const provider of Constants.PROVIDER_LIST) {
if (!data[provider]) {
data[provider] = {
AutoMount: false,
AutoRestart: true,
MountLocation: '',
}
}
}
data.RemoteMounts = data.RemoteMounts || []; data.RemoteMounts = data.RemoteMounts || [];
data.S3Mounts = data.S3Mounts || []; data.S3Mounts = data.S3Mounts || [];