[Continue S3 support] [Handle set configuration errors]

This commit is contained in:
2020-08-15 22:29:55 -05:00
parent 25e689b033
commit d8c87872d2
8 changed files with 119 additions and 78 deletions

View File

@@ -40,8 +40,8 @@ const addListeners = (ipcMain, {standardIPCReply}) => {
.then(() => {
setConfigValue(++i);
})
.catch(() => {
setConfigValue(++i);
.catch(error => {
standardIPCReply(event, Constants.IPC_Set_Config_Values_Reply, {}, error);
});
} else {
standardIPCReply(event, Constants.IPC_Set_Config_Values_Reply, {});

View File

@@ -93,6 +93,7 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => {
const providerList = [
...Constants.PROVIDER_LIST,
...data.RemoteMounts,
...data.S3Mounts,
];
for (const provider of providerList) {
driveLetters[provider] = [];