SDA-4158 Update URL if different

This commit is contained in:
sbenmoussati 2023-04-14 09:16:21 +02:00 committed by Salah Benmoussati
parent c5e171e116
commit 66900b0aab

View File

@ -408,7 +408,10 @@ ipcMain.on(
await config.updateUserConfig({ await config.updateUserConfig({
browserLoginAutoConnect: arg.browserLoginAutoConnect, browserLoginAutoConnect: arg.browserLoginAutoConnect,
}); });
if (!arg.isPodConfigured) { const { url: previousUserConfigURL } = config.getUserConfigFields([
'url',
]);
if (!arg.isPodConfigured || previousUserConfigURL !== arg.newPodUrl) {
await config.updateUserConfig({ await config.updateUserConfig({
url: arg.newPodUrl, url: arg.newPodUrl,
}); });