Tidying
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user