From 8a984eac5947a838cc0dbb49cbc5961bb0a7a4c2 Mon Sep 17 00:00:00 2001 From: Jokul Date: Sun, 9 Aug 2026 09:09:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20TCP=E8=BF=9E=E6=8E=A5=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=97=B4=E9=9A=94=E6=96=87=E6=A1=88=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=8A=A8=E6=80=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit '每5秒刷新'写死改为读取 applet.refreshInterval 动态显示实际间隔 --- package/components/TcpConnectionsWindow.qml | 2 +- translations/jnetapplet_zh_CN.ts | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package/components/TcpConnectionsWindow.qml b/package/components/TcpConnectionsWindow.qml index c520cc1..7703939 100644 --- a/package/components/TcpConnectionsWindow.qml +++ b/package/components/TcpConnectionsWindow.qml @@ -187,7 +187,7 @@ Window { Item { Layout.fillWidth: true } Text { - text: qsTr("Refreshes every 5 seconds") + text: qsTr("Refreshes every ") + ((root.applet ? root.applet.refreshInterval : 1000) / 1000) + qsTr(" seconds") font.pixelSize: 11 color: theme.textTertiary } diff --git a/translations/jnetapplet_zh_CN.ts b/translations/jnetapplet_zh_CN.ts index 72fac07..99aef85 100644 --- a/translations/jnetapplet_zh_CN.ts +++ b/translations/jnetapplet_zh_CN.ts @@ -363,8 +363,13 @@ - Refreshes every 5 seconds - 每 5 秒刷新 + Refreshes every + 每 + + + + seconds + 秒刷新