refactor: only show httpupgrade on nekobox

This commit is contained in:
purofle
2023-11-03 12:47:09 +08:00
parent 369cc7c1aa
commit 974bb9167d
2 changed files with 4 additions and 5 deletions

View File

@@ -89,6 +89,10 @@ DialogEditProfile::DialogEditProfile(const QString &_type, int profileOrGroupId,
}); });
ui->network->removeItem(0); ui->network->removeItem(0);
if (IS_NEKO_BOX) {
ui->network->addItem("httpupgrade");
}
// security changed // security changed
connect(ui->security, &QComboBox::currentTextChanged, this, [=](const QString &txt) { connect(ui->security, &QComboBox::currentTextChanged, this, [=](const QString &txt) {
if (txt == "tls") { if (txt == "tls") {

View File

@@ -260,11 +260,6 @@
<string notr="true">quic</string> <string notr="true">quic</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string notr="true">httpupgrade</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">