From 974bb9167dfaacc5ada4b15869f1e4fb69a1a034 Mon Sep 17 00:00:00 2001 From: purofle Date: Fri, 3 Nov 2023 12:47:09 +0800 Subject: [PATCH] refactor: only show httpupgrade on nekobox --- ui/edit/dialog_edit_profile.cpp | 4 ++++ ui/edit/dialog_edit_profile.ui | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/edit/dialog_edit_profile.cpp b/ui/edit/dialog_edit_profile.cpp index fe70a3e21..3eb448936 100644 --- a/ui/edit/dialog_edit_profile.cpp +++ b/ui/edit/dialog_edit_profile.cpp @@ -89,6 +89,10 @@ DialogEditProfile::DialogEditProfile(const QString &_type, int profileOrGroupId, }); ui->network->removeItem(0); + if (IS_NEKO_BOX) { + ui->network->addItem("httpupgrade"); + } + // security changed connect(ui->security, &QComboBox::currentTextChanged, this, [=](const QString &txt) { if (txt == "tls") { diff --git a/ui/edit/dialog_edit_profile.ui b/ui/edit/dialog_edit_profile.ui index 0e97ffbe0..d4e1005fe 100644 --- a/ui/edit/dialog_edit_profile.ui +++ b/ui/edit/dialog_edit_profile.ui @@ -260,11 +260,6 @@ quic - - - httpupgrade - -