mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +00:00
Avoid calling triggerRaisePrioritizedMemoryWidget() on every command
This commit is contained in:
parent
1ee7061c72
commit
cd776c24ef
@ -167,7 +167,6 @@ QString CutterCore::cmd(const QString &str)
|
|||||||
memoryWidgetPriority = MemoryWidgetType::Disassembly;
|
memoryWidgetPriority = MemoryWidgetType::Disassembly;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
triggerRaisePrioritizedMemoryWidget();
|
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -375,21 +374,25 @@ void CutterCore::seek(ut64 offset)
|
|||||||
}
|
}
|
||||||
cmd(QString("s %1").arg(offset));
|
cmd(QString("s %1").arg(offset));
|
||||||
// cmd already does emit seekChanged(core_->offset);
|
// cmd already does emit seekChanged(core_->offset);
|
||||||
|
triggerRaisePrioritizedMemoryWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CutterCore::seek(QString thing)
|
void CutterCore::seek(QString thing)
|
||||||
{
|
{
|
||||||
cmdRaw(QString("s %1").arg(thing));
|
cmdRaw(QString("s %1").arg(thing));
|
||||||
|
triggerRaisePrioritizedMemoryWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CutterCore::seekPrev()
|
void CutterCore::seekPrev()
|
||||||
{
|
{
|
||||||
cmd("s-");
|
cmd("s-");
|
||||||
|
triggerRaisePrioritizedMemoryWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CutterCore::seekNext()
|
void CutterCore::seekNext()
|
||||||
{
|
{
|
||||||
cmd("s+");
|
cmd("s+");
|
||||||
|
triggerRaisePrioritizedMemoryWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
RVA CutterCore::prevOpAddr(RVA startAddr, int count)
|
RVA CutterCore::prevOpAddr(RVA startAddr, int count)
|
||||||
|
Loading…
Reference in New Issue
Block a user