mirror of https://github.com/WerWolv/ImHex.git
fix: Byte type distribution and entropy slider not updating
This commit is contained in:
parent
026713750d
commit
e7df0d201f
|
@ -143,8 +143,15 @@ namespace hex::plugin::builtin {
|
||||||
|
|
||||||
class InformationByteAnalysis : public ContentRegistry::DataInformation::InformationSection {
|
class InformationByteAnalysis : public ContentRegistry::DataInformation::InformationSection {
|
||||||
public:
|
public:
|
||||||
InformationByteAnalysis() : InformationSection("hex.builtin.information_section.info_analysis", "", true) { }
|
InformationByteAnalysis() : InformationSection("hex.builtin.information_section.info_analysis", "", true) {
|
||||||
~InformationByteAnalysis() override = default;
|
EventRegionSelected::subscribe(this, [this](const ImHexApi::HexEditor::ProviderRegion ®ion) {
|
||||||
|
m_byteTypesDistribution.setHandlePosition(region.getStartAddress());
|
||||||
|
m_chunkBasedEntropy.setHandlePosition(region.getStartAddress());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
~InformationByteAnalysis() override {
|
||||||
|
EventRegionSelected::unsubscribe(this);
|
||||||
|
}
|
||||||
|
|
||||||
void process(Task &task, prv::Provider *provider, Region region) override {
|
void process(Task &task, prv::Provider *provider, Region region) override {
|
||||||
if (m_inputChunkSize == 0)
|
if (m_inputChunkSize == 0)
|
||||||
|
|
Loading…
Reference in New Issue