refactor: set Remote host when it changes on the line edit.

This commit is contained in:
sithlord48
2025-10-15 00:08:02 -04:00
committed by Chris Rizzitello
parent 687fd5411a
commit 34f56af6d6

View File

@ -1234,5 +1234,7 @@ void MainWindow::remoteHostChanged(const QString &newRemoteHost)
toggleCanRunCore(!newRemoteHost.isEmpty() && ui->rbModeClient->isChecked());
if (newRemoteHost.isEmpty()) {
Settings::setValue(Settings::Client::RemoteHost, QVariant());
} else {
Settings::setValue(Settings::Client::RemoteHost, newRemoteHost);
}
}