From 18e433ea06ad6e64f01ebf022e208ca828e6bfca Mon Sep 17 00:00:00 2001 From: Jokul Date: Sun, 9 Aug 2026 07:21:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20UI=20=E8=AF=AD=E4=B9=89=E5=8C=BA?= =?UTF-8?q?=E5=88=86=E4=BC=9A=E8=AF=9D=E6=80=BB=E9=87=8F=E4=B8=8E=E6=97=A5?= =?UTF-8?q?=E6=9C=88=E7=B4=AF=E8=AE=A1=20+=20=E4=BF=AE=E5=A4=8D=20onVisibl?= =?UTF-8?q?eChanged=20=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 弹窗'流量总计'改为'本次会话',明确是本次 dde-shell 运行期间累计; 流量统计窗口'按接口累计'改为'今日累计/本月累计',明确是跨重启持久化。 修复 TrafficStatsWindow onVisibleChanged 重复设置导致插件加载失败 --- package/components/NetworkPopup.qml | 2 +- package/components/TrafficStatsWindow.qml | 2 +- translations/jnetapplet_zh_CN.ts | 13 +++++++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/package/components/NetworkPopup.qml b/package/components/NetworkPopup.qml index 3e935f7..37fd16b 100644 --- a/package/components/NetworkPopup.qml +++ b/package/components/NetworkPopup.qml @@ -454,7 +454,7 @@ Control { Item { Layout.fillWidth: true } Text { - text: qsTr("Total") + text: qsTr("Session Total") font.pixelSize: 12 color: popup.tertiaryText } diff --git a/package/components/TrafficStatsWindow.qml b/package/components/TrafficStatsWindow.qml index 857581e..c486928 100644 --- a/package/components/TrafficStatsWindow.qml +++ b/package/components/TrafficStatsWindow.qml @@ -211,7 +211,7 @@ Window { // 右侧数据说明:按接口累计 Text { - text: qsTr("Accumulated by interface") + text: root.currentTab === 0 ? qsTr("Today accumulated") : qsTr("This month accumulated") font.pixelSize: 11 color: theme.textTertiary } diff --git a/translations/jnetapplet_zh_CN.ts b/translations/jnetapplet_zh_CN.ts index 922f832..900a268 100644 --- a/translations/jnetapplet_zh_CN.ts +++ b/translations/jnetapplet_zh_CN.ts @@ -78,8 +78,8 @@ - Total - 流量总计 + Session Total + 本次会话 @@ -295,8 +295,13 @@ - Accumulated by interface - 按接口累计 + Today accumulated + 今日累计 + + + + This month accumulated + 本月累计