This commit is contained in:
Nav
2023-05-01 17:08:19 +01:00
parent e72efe71f2
commit f634782551
2 changed files with 5 additions and 5 deletions

View File

@@ -596,6 +596,11 @@ namespace Bloom::Widgets
menu->addAction(this->deleteSnapshotAction); menu->addAction(this->deleteSnapshotAction);
menu->addSeparator(); menu->addSeparator();
menu->addAction(this->openSnapshotCurrentDiffAction); menu->addAction(this->openSnapshotCurrentDiffAction);
if (this->selectedSnapshotItems.size() == 2) {
menu->addAction(this->openSnapshotDiffAction);
}
menu->addSeparator(); menu->addSeparator();
menu->addAction(this->restoreSnapshotAction); menu->addAction(this->restoreSnapshotAction);
@@ -609,10 +614,6 @@ namespace Bloom::Widgets
this->selectedSnapshotItems.size() == 1 && this->targetState == Targets::TargetState::STOPPED this->selectedSnapshotItems.size() == 1 && this->targetState == Targets::TargetState::STOPPED
); );
if (this->selectedSnapshotItems.size() == 2) {
menu->addAction(this->openSnapshotDiffAction);
}
menu->exec(sourcePosition); menu->exec(sourcePosition);
} }

View File

@@ -33,7 +33,6 @@ namespace Bloom::Widgets
public: public:
CreateSnapshotWindow* createSnapshotWindow = nullptr; CreateSnapshotWindow* createSnapshotWindow = nullptr;
MemorySnapshotItem* selectedItem = nullptr;
explicit SnapshotManager( explicit SnapshotManager(
const Targets::TargetMemoryDescriptor& memoryDescriptor, const Targets::TargetMemoryDescriptor& memoryDescriptor,