mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 02:25:26 +00:00
Use cmdRaw and cmdRawAt in ColorThemeListView
This commit is contained in:
parent
34e2cdf960
commit
31c994ae4c
@ -241,7 +241,7 @@ void ColorThemeListView::currentChanged(const QModelIndex ¤t,
|
||||
ColorOption prev = previous.data(Qt::UserRole).value<ColorOption>();
|
||||
Config()->setColor(prev.optionName, prev.color);
|
||||
if (ThemeWorker().radare2SpecificOptions.contains(prev.optionName)) {
|
||||
Core()->cmd(QString("ec %1 %2").arg(prev.optionName).arg(prev.color.name()));
|
||||
Core()->cmdRaw(QString("ec %1 %2").arg(prev.optionName).arg(prev.color.name()));
|
||||
}
|
||||
|
||||
QListView::currentChanged(current, previous);
|
||||
@ -302,7 +302,7 @@ void ColorThemeListView::blinkTimeout()
|
||||
auto updateColor = [](const QString &name, const QColor &color) {
|
||||
Config()->setColor(name, color);
|
||||
if (ThemeWorker().radare2SpecificOptions.contains(name)) {
|
||||
Core()->cmd(QString("ec %1 %2").arg(name).arg(color.name()));
|
||||
Core()->cmdRaw(QString("ec %1 %2").arg(name).arg(color.name()));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user