diff --git a/translations/fa_IR.ts b/translations/fa_IR.ts index cc0d9cb..53a2286 100644 --- a/translations/fa_IR.ts +++ b/translations/fa_IR.ts @@ -298,6 +298,10 @@ For NekoBox, this rewrites the underlying(localhost) DNS in VPN mode, normal mod None هیچ یک + + Clear + پاک کردن + DialogEditProfile diff --git a/translations/zh_CN.ts b/translations/zh_CN.ts index b8e2ba8..267bc57 100644 --- a/translations/zh_CN.ts +++ b/translations/zh_CN.ts @@ -298,6 +298,10 @@ For NekoBox, this rewrites the underlying(localhost) DNS in VPN mode, normal mod None + + Clear + 清除 + DialogEditProfile @@ -1103,7 +1107,7 @@ This needs to be run NekoBox with administrator privileges. Add profile from clipboard - 从剪切板添加 + 从剪贴板添加 Debug Info diff --git a/ui/edit/dialog_edit_group.cpp b/ui/edit/dialog_edit_group.cpp index d560aee..c52f44d 100644 --- a/ui/edit/dialog_edit_group.cpp +++ b/ui/edit/dialog_edit_group.cpp @@ -36,6 +36,10 @@ DialogEditGroup::DialogEditGroup(const std::shared_ptr &ent, QWi CACHE.front_proxy = ent->front_proxy_id; refresh_front_proxy(); + connect(ui->front_proxy_clear, &QPushButton::clicked, this, [=] { + CACHE.front_proxy = -1; + refresh_front_proxy(); + }); connect(ui->copy_links, &QPushButton::clicked, this, [=] { QStringList links; diff --git a/ui/edit/dialog_edit_group.ui b/ui/edit/dialog_edit_group.ui index 423d0f5..f736566 100644 --- a/ui/edit/dialog_edit_group.ui +++ b/ui/edit/dialog_edit_group.ui @@ -84,13 +84,6 @@ - - - - - - - @@ -98,6 +91,30 @@ + + + + + + + + + + + + + + 0 + 0 + + + + Clear + + + + + @@ -173,6 +190,17 @@
ui/widget/MyLineEdit.h
+ + name + type + front_proxy + front_proxy_clear + manually_column_width + archive + url + copy_links + copy_links_nkr +