fix: UI 语义区分会话总量与日月累计 + 修复 onVisibleChanged 重复
弹窗'流量总计'改为'本次会话',明确是本次 dde-shell 运行期间累计; 流量统计窗口'按接口累计'改为'今日累计/本月累计',明确是跨重启持久化。 修复 TrafficStatsWindow onVisibleChanged 重复设置导致插件加载失败
This commit is contained in:
@@ -454,7 +454,7 @@ Control {
|
|||||||
Item { Layout.fillWidth: true }
|
Item { Layout.fillWidth: true }
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: qsTr("Total")
|
text: qsTr("Session Total")
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
color: popup.tertiaryText
|
color: popup.tertiaryText
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ Window {
|
|||||||
|
|
||||||
// 右侧数据说明:按接口累计
|
// 右侧数据说明:按接口累计
|
||||||
Text {
|
Text {
|
||||||
text: qsTr("Accumulated by interface")
|
text: root.currentTab === 0 ? qsTr("Today accumulated") : qsTr("This month accumulated")
|
||||||
font.pixelSize: 11
|
font.pixelSize: 11
|
||||||
color: theme.textTertiary
|
color: theme.textTertiary
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,8 +78,8 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../package/components/NetworkPopup.qml" line="427"/>
|
<location filename="../package/components/NetworkPopup.qml" line="427"/>
|
||||||
<source>Total</source>
|
<source>Session Total</source>
|
||||||
<translation>流量总计</translation>
|
<translation>本次会话</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../package/components/NetworkPopup.qml" line="474"/>
|
<location filename="../package/components/NetworkPopup.qml" line="474"/>
|
||||||
@@ -295,8 +295,13 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../package/components/TrafficStatsWindow.qml" line="202"/>
|
<location filename="../package/components/TrafficStatsWindow.qml" line="202"/>
|
||||||
<source>Accumulated by interface</source>
|
<source>Today accumulated</source>
|
||||||
<translation>按接口累计</translation>
|
<translation>今日累计</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../package/components/TrafficStatsWindow.qml" line="214"/>
|
||||||
|
<source>This month accumulated</source>
|
||||||
|
<translation>本月累计</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../package/components/TrafficStatsWindow.qml" line="218"/>
|
<location filename="../package/components/TrafficStatsWindow.qml" line="218"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user