fix(lite-mode): 修正lite模式接口参数
This commit is contained in:
parent
0561a80631
commit
db2cfe312d
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue