Skip to content

Commit ed3e260

Browse files
committed
fixing issue with loading/persistence of timeout in network window
1 parent 0b2b8fb commit ed3e260

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

electron/app/main.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,10 @@ class Main {
845845
});
846846

847847
ipcMain.handle('get-network-settings', async () => {
848-
const proxyUrl = getHttpsProxyUrl();
849-
const bypassHosts = getBypassProxyHosts();
850848
return {
851-
proxyUrl: proxyUrl,
852-
bypassHosts: bypassHosts
849+
proxyUrl: getHttpsProxyUrl(),
850+
bypassHosts: getBypassProxyHosts(),
851+
timeout: userSettings.getConnectivityTestTimeout()
853852
};
854853
});
855854

webui/src/js/viewModels/network-page.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ function(accUtils, ko, i18n, project) {
1515
.then(settings => {
1616
this.proxyUrl(settings.proxyUrl);
1717
this.bypassProxyHosts(settings.bypassHosts);
18+
19+
let timeoutSeconds = settings.timeout / 1000;
20+
if (timeoutSeconds < 1) {
21+
timeoutSeconds = 1;
22+
}
23+
this.requestTimeoutSeconds(timeoutSeconds);
1824
});
1925
};
2026

0 commit comments

Comments
 (0)