Skip to content

Commit

Permalink
refactor: only show httpupgrade on nekobox
Browse files Browse the repository at this point in the history
  • Loading branch information
purofle committed Nov 3, 2023
1 parent 369cc7c commit 974bb91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ui/edit/dialog_edit_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
5 changes: 0 additions & 5 deletions ui/edit/dialog_edit_profile.ui
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,6 @@
<string notr="true">quic</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">httpupgrade</string>
</property>
</item>
</widget>
</item>
<item row="2" column="1">
Expand Down

0 comments on commit 974bb91

Please sign in to comment.