Skip to content

Commit

Permalink
UI: Fix Auto-Config Wizard for custom server with no stream key
Browse files Browse the repository at this point in the history
The Auto-Configuration Wizard cannot progress when selecting a custom
service that does not require a stream key. Since we have no way to
validate if a custom service requires a stream key, we should just not
require a stream key is custom service is selected. To fix this, check
if a custom service has not been selected when checking if the stream
key is empty.

Co-authored-by: Ryan Foster <[email protected]>
  • Loading branch information
mar10iana and RytoEX committed Mar 29, 2024
1 parent 1badf8e commit 004253f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI/window-basic-auto-config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,11 +852,11 @@ void AutoConfigStreamPage::UpdateServerList()

void AutoConfigStreamPage::UpdateCompleted()
{
const bool custom = IsCustomService();
if (ui->stackedWidget->currentIndex() == (int)Section::Connect ||
(ui->key->text().isEmpty() && !auth)) {
(ui->key->text().isEmpty() && !auth && !custom)) {
ready = false;
} else {
bool custom = IsCustomService();
if (custom) {
ready = !ui->customServer->text().isEmpty();
} else {
Expand Down

0 comments on commit 004253f

Please sign in to comment.