fix(lite-mode): 修正lite模式接口参数

This commit is contained in:
hewenfei 2024-01-10 16:54:04 +08:00
parent 0561a80631
commit db2cfe312d
1 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ void GlobalSetting::initGlobalSettings()
void GlobalSetting::initUSDSetting() void GlobalSetting::initUSDSetting()
{ {
m_cache.insert(IsLiteMode, true); m_cache.insert(IsLiteMode, false);
const QString service = QStringLiteral("org.ukui.SettingsDaemon"); const QString service = QStringLiteral("org.ukui.SettingsDaemon");
const QString path = QStringLiteral("/GlobalSignal"); const QString path = QStringLiteral("/GlobalSignal");
@ -200,7 +200,7 @@ void GlobalSetting::initUSDSetting()
void GlobalSetting::onSysModeChanged(QMap<QString, QVariant> map) void GlobalSetting::onSysModeChanged(QMap<QString, QVariant> map)
{ {
if (map.contains("animation")) { if (map.contains("animation")) {
m_cache.insert(IsLiteMode, (map.value("animation").toString() == "off")); m_cache.insert(IsLiteMode, (map.value("animation").toString() == QStringLiteral("lite")));
Q_EMIT styleChanged(IsLiteMode); Q_EMIT styleChanged(IsLiteMode);
} }
} }