Refresh hex viewer when opening previous opened snapshot diff window
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user