fix: Loading files into memory

This commit is contained in:
WerWolv
2023-11-27 15:48:46 +01:00
parent 9cbfaed5fe
commit 1b665fa1b3
2 changed files with 12 additions and 2 deletions

View File

@@ -44,6 +44,12 @@ namespace hex::prv::undo {
const std::vector<std::unique_ptr<Operation>> &getUndoneOperations() const {
return this->m_redoStack;
}
void reset() {
this->m_undoStack.clear();
this->m_redoStack.clear();
}
private:
[[nodiscard]] Operation* getLastOperation() const {
return this->m_undoStack.back().get();