From 98b0807ee5fd34fece2d49a8c15c9aabd7f8eef9 Mon Sep 17 00:00:00 2001 From: zhangkun Date: Tue, 13 May 2025 17:21:30 +0800 Subject: [PATCH] refactor: reorder power mode options in performance controller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Changed the order of power mode options in PerformanceModeController 2. Now shows High Performance first, followed by Balance Performance and Balanced mode 3. Matching property map was also reordered to maintain consistency 4. This change likely reflects a new priority order for power modes where performance is emphasized refactor: 性能控制器中电源模式选项重新排序 1. 修改了PerformanceModeController中电源模式选项的顺序 2. 现在首先显示高性能模式,然后是平衡性能和平衡模式 3. 匹配的属性映射也重新排序以保持一致性 4. 此变更可能反映了电源模式的新优先级顺序,其中性能被强调 pms: BUG-271001 --- plugins/dde-dock/power/performancemodecontroller.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/dde-dock/power/performancemodecontroller.h b/plugins/dde-dock/power/performancemodecontroller.h index 0b9c8af1d..fea760a01 100644 --- a/plugins/dde-dock/power/performancemodecontroller.h +++ b/plugins/dde-dock/power/performancemodecontroller.h @@ -51,15 +51,15 @@ class PerformanceModeController : public QObject, public Dtk::Core::DSingleton

setSync(false); const QList> powerModeList = { - QPair(BALANCE, tr("Balanced")), - QPair(BALANCEPERFORMANCE, tr("Balance Performance")), QPair(PERFORMANCE, tr("High Performance")), + QPair(BALANCEPERFORMANCE, tr("Balance Performance")), + QPair(BALANCE, tr("Balanced")), QPair(POWERSAVE, tr("Power Saver")) }; const QMappowerModeProperty = { - {BALANCE, "IsBalanceSupported"}, - {BALANCEPERFORMANCE, "IsBalancePerformanceSupported"}, {PERFORMANCE, "IsHighPerformanceSupported"}, + {BALANCEPERFORMANCE, "IsBalancePerformanceSupported"}, + {BALANCE, "IsBalanceSupported"}, {POWERSAVE, "IsPowerSaveSupported"} };