mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-21 14:16:08 +00:00
Use cmdRaw and cmdRawAt in Configuration.cpp
This commit is contained in:
parent
6bd0d78b73
commit
b735cb6f23
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user