Skip to content

Commit e303c49

Browse files
mhduiydeepin-bot[bot]
authored andcommitted
refactor: reorder power mode options in performance controller
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
1 parent 373bb94 commit e303c49

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/dde-dock/power/performancemodecontroller.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ class PerformanceModeController : public QObject, public Dtk::Core::DSingleton<P
5151
{
5252
m_sysPowerInter->setSync(false);
5353
const QList<QPair<QString, QString>> powerModeList = {
54-
QPair<QString, QString>(BALANCE, tr("Balanced")),
55-
QPair<QString, QString>(BALANCEPERFORMANCE, tr("Balance Performance")),
5654
QPair<QString, QString>(PERFORMANCE, tr("High Performance")),
55+
QPair<QString, QString>(BALANCEPERFORMANCE, tr("Balance Performance")),
56+
QPair<QString, QString>(BALANCE, tr("Balanced")),
5757
QPair<QString, QString>(POWERSAVE, tr("Power Saver"))
5858
};
5959
const QMap<QString, QString>powerModeProperty = {
60-
{BALANCE, "IsBalanceSupported"},
61-
{BALANCEPERFORMANCE, "IsBalancePerformanceSupported"},
6260
{PERFORMANCE, "IsHighPerformanceSupported"},
61+
{BALANCEPERFORMANCE, "IsBalancePerformanceSupported"},
62+
{BALANCE, "IsBalanceSupported"},
6363
{POWERSAVE, "IsPowerSaveSupported"}
6464
};
6565

0 commit comments

Comments
 (0)