From 3ac99aa88c7019c8313304ef74dd5bbb468a74bc Mon Sep 17 00:00:00 2001 From: Xusheng Date: Thu, 11 Jan 2024 14:23:54 +0800 Subject: Expose the BinaryView::ForgetUndoActions API and use avoid undo actions warning in the debugger --- filemetadata.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'filemetadata.cpp') diff --git a/filemetadata.cpp b/filemetadata.cpp index 1838796d..89e759af 100644 --- a/filemetadata.cpp +++ b/filemetadata.cpp @@ -315,6 +315,12 @@ void FileMetadata::RevertUndoActions(const std::string& id) } +void FileMetadata::ForgetUndoActions(const std::string &id) +{ + BNForgetUndoActions(m_object, id.c_str()); +} + + bool FileMetadata::CanUndo() { return BNCanUndo(m_object); -- cgit v1.3.1