Fixed an issue where the user can't change the connection timeout setting if the fixed port number is enabled. Fixes #6249

pull/41/head
Akshay Joshi 2021-02-19 14:24:16 +05:30
parent f65eb546b7
commit 2570f7d75c
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ var gui = require('nw.gui');
var configWindow = gui.Window.get();
function checkConfiguration() {
if (document.getElementById('fixedPortCheck').checked) {
var configData = misc.ConfigureStore.getConfigData();
if (document.getElementById('fixedPortCheck').checked && configData['portNo'] != document.getElementById('portNo').value) {
var fixedPort = parseInt(document.getElementById('portNo').value);
// get the available TCP port
misc.getAvailablePort(fixedPort)