mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 02:48:49 +00:00
Sync hex.pairs eval to "Bytes as pairs" in Hexdump (#1586)
* Sync hex.pairs eval
This commit is contained in:
parent
adf28e4362
commit
53756f29d2
@ -209,6 +209,7 @@ void HexWidget::updateCounts()
|
||||
{
|
||||
actionHexPairs->setEnabled(rowSizeBytes > 1 && itemByteLen == 1
|
||||
&& itemFormat == ItemFormat::ItemFormatHex);
|
||||
actionHexPairs->setChecked(Core()->getConfigb("hex.pairs"));
|
||||
if (actionHexPairs->isChecked() && actionHexPairs->isEnabled()) {
|
||||
itemGroupSize = 2;
|
||||
} else {
|
||||
@ -550,6 +551,8 @@ void HexWidget::onCursorBlinked()
|
||||
|
||||
void HexWidget::onHexPairsModeEnabled(bool enable)
|
||||
{
|
||||
// Sync configuration
|
||||
Core()->setConfig("hex.pairs", enable);
|
||||
if (enable) {
|
||||
setItemGroupSize(2);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user