From 6bd0d78b73cee3e27b7625a2569b11dc07820211 Mon Sep 17 00:00:00 2001 From: itayc0hen Date: Fri, 20 Mar 2020 20:11:38 +0200 Subject: [PATCH] Use cmdRaw and cmdRawAt in ColorThemeWorker --- src/common/ColorThemeWorker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/ColorThemeWorker.cpp b/src/common/ColorThemeWorker.cpp index 6c782821..0999f64f 100644 --- a/src/common/ColorThemeWorker.cpp +++ b/src/common/ColorThemeWorker.cpp @@ -167,9 +167,9 @@ QJsonDocument ColorThemeWorker::getTheme(const QString& themeName) const QString curr = Config()->getColorTheme(); if (themeName != curr) { - Core()->cmd(QString("eco %1").arg(themeName)); + Core()->cmdRaw(QString("eco %1").arg(themeName)); theme = Core()->cmdj("ecj").object().toVariantMap(); - Core()->cmd(QString("eco %1").arg(curr)); + Core()->cmdRaw(QString("eco %1").arg(curr)); } else { theme = Core()->cmdj("ecj").object().toVariantMap(); }