Refresh hex viewer when opening previous opened snapshot diff window

This commit is contained in:
Nav
2023-05-07 03:14:37 +01:00
parent c7a6ad26ec
commit 68059e9dfd

View File

@@ -381,7 +381,21 @@ namespace Bloom::Widgets
auto snapshotDiffIt = this->snapshotCurrentDiffsBySnapshotAId.find(snapshotIdA); auto snapshotDiffIt = this->snapshotCurrentDiffsBySnapshotAId.find(snapshotIdA);
if (snapshotDiffIt == this->snapshotCurrentDiffsBySnapshotAId.end()) { if (snapshotDiffIt != this->snapshotCurrentDiffsBySnapshotAId.end()) {
auto* snapshotDiff = snapshotDiffIt.value();
snapshotDiff->refreshB(
*(this->data),
this->focusedMemoryRegions,
this->excludedMemoryRegions,
this->stackPointer.value_or(0)
);
snapshotDiff->show();
snapshotDiff->activateWindow();
return;
}
const auto& snapshotItA = this->snapshotsById.find(snapshotIdA); const auto& snapshotItA = this->snapshotsById.find(snapshotIdA);
if (snapshotItA == this->snapshotsById.end()) { if (snapshotItA == this->snapshotsById.end()) {
@@ -400,7 +414,6 @@ namespace Bloom::Widgets
this this
) )
); );
}
auto* snapshotDiff = snapshotDiffIt.value(); auto* snapshotDiff = snapshotDiffIt.value();
snapshotDiff->show(); snapshotDiff->show();