Disable the region selection box when the server lis is empty

This commit is contained in:
redphx 2024-07-13 17:41:27 +07:00
parent 9d00082c67
commit 66d5d9edc6

View File

@ -344,6 +344,8 @@ export function setupSettingsUi() {
$control.appendChild($option);
}
$control.disabled = Object.keys(STATES.serverRegions).length === 0;
// Select preferred region
$control.value = selectedValue;
} else {