Use cmdRaw and cmdRawAt in Configuration.cpp

This commit is contained in:
itayc0hen 2020-03-20 20:11:46 +02:00 committed by Itay Cohen
parent 6bd0d78b73
commit b735cb6f23

View File

@ -208,7 +208,7 @@ int Configuration::getNewFileLastClicked()
void Configuration::resetAll() void Configuration::resetAll()
{ {
Core()->cmd("e-"); Core()->cmdRaw("e-");
Core()->setSettings(); Core()->setSettings();
// Delete the file so no extra configuration is in it. // Delete the file so no extra configuration is in it.
QFile settingsFile(s.fileName()); QFile settingsFile(s.fileName());
@ -524,10 +524,10 @@ const QColor Configuration::getColor(const QString &name) const
void Configuration::setColorTheme(const QString &theme) void Configuration::setColorTheme(const QString &theme)
{ {
if (theme == "default") { if (theme == "default") {
Core()->cmd("ecd"); Core()->cmdRaw("ecd");
s.setValue("theme", "default"); s.setValue("theme", "default");
} else { } else {
Core()->cmd(QStringLiteral("eco %1").arg(theme)); Core()->cmdRaw(QStringLiteral("eco %1").arg(theme));
s.setValue("theme", theme); s.setValue("theme", theme);
} }