From 44d3692e96d565d1394ea8e73c1f4b6f19961bcd Mon Sep 17 00:00:00 2001 From: Misaka-blog Date: Thu, 2 Nov 2023 18:56:10 +0800 Subject: [PATCH] fix: disabled httpupgrade option for nekoray --- ui/edit/dialog_edit_profile.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/edit/dialog_edit_profile.cpp b/ui/edit/dialog_edit_profile.cpp index fe70a3e21..2764ee47a 100644 --- a/ui/edit/dialog_edit_profile.cpp +++ b/ui/edit/dialog_edit_profile.cpp @@ -46,13 +46,20 @@ DialogEditProfile::DialogEditProfile(const QString &_type, int profileOrGroupId, ui->path_l->setVisible(true); ui->host->setVisible(false); ui->host_l->setVisible(false); - } else if (txt == "ws" || txt == "http" || txt == "httpupgrade") { + } else if (txt == "ws" || txt == "http") { ui->header_type->setVisible(false); ui->header_type_l->setVisible(false); ui->path->setVisible(true); ui->path_l->setVisible(true); ui->host->setVisible(true); ui->host_l->setVisible(true); + } else if (txt == "httpupgrade") { + ui->header_type->setVisible(false); + ui->header_type_l->setVisible(false); + ui->path->setVisible(true); + ui->path_l->setVisible(false); + ui->host->setVisible(true); + ui->host_l->setVisible(false); } else { ui->header_type->setVisible(false); ui->header_type_l->setVisible(false);