diff --git a/translations/zh_CN.ts b/translations/zh_CN.ts
index e1a4f84..e8f0ead 100644
--- a/translations/zh_CN.ts
+++ b/translations/zh_CN.ts
@@ -237,7 +237,7 @@ For NekoBox, this rewrites the underlying(localhost) DNS in Tun Mode, normal mod
<html><head/><body><p>Remove the currently generated rule-sets so that they can be regenerated</p></body></html>
- <html><head/><body><p>移除当前生成的规则集,以便重新生成</p></body></html>
+ <html><head/><body><p>移除当前生成的规则集,以便重新生成</p></body></html>Remove Generated Rule-sets
@@ -716,7 +716,6 @@ when set, domain destinations are resolved to IP before connect,
also if the connection cannot be established with the current address family (ipv4, ipv6), a fallback connection is created shortly after, with the other address family.
outbound.domain_strategy
设置后,域名目的地在连接前解析为 IP。如果无法通过当前地址(IPv4、IPv6)建立连接,则会在稍后使用另一地址创建备用连接。
- Outbound Domain Strategy
diff --git a/ui/dialog_manage_routes.cpp b/ui/dialog_manage_routes.cpp
index 5205035..7724ece 100644
--- a/ui/dialog_manage_routes.cpp
+++ b/ui/dialog_manage_routes.cpp
@@ -159,6 +159,17 @@ void DialogManageRoutes::on_new_route_clicked() {
});
}
+void DialogManageRoutes::on_clone_route_clicked() {
+ auto idx = ui->route_profiles->currentRow();
+ if (idx < 0) return;
+
+ auto chainCopy = std::make_shared(*chainList[idx]);
+ chainCopy->name = chainCopy->name + " clone";
+ chainCopy->id = -1;
+ chainList.append(chainCopy);
+ reloadProfileItems();
+}
+
void DialogManageRoutes::on_edit_route_clicked() {
auto idx = ui->route_profiles->currentRow();
if (idx < 0) return;
diff --git a/ui/dialog_manage_routes.h b/ui/dialog_manage_routes.h
index 29a8c2d..ca9f5d8 100644
--- a/ui/dialog_manage_routes.h
+++ b/ui/dialog_manage_routes.h
@@ -40,6 +40,8 @@ public slots:
void on_new_route_clicked();
+ void on_clone_route_clicked();
+
void on_edit_route_clicked();
void on_delete_route_clicked();
diff --git a/ui/dialog_manage_routes.ui b/ui/dialog_manage_routes.ui
index a06f493..cdf2f9e 100644
--- a/ui/dialog_manage_routes.ui
+++ b/ui/dialog_manage_routes.ui
@@ -414,6 +414,13 @@ For more information, see the document "Configuration/DNS".
+
+
+
+ Clone
+
+
+
@@ -449,7 +456,7 @@ For more information, see the document "Configuration/DNS".
- QDialogButtonBox::Cancel|QDialogButtonBox::Ok
+ QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok