mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
fix: Data inspector not updating correctly when data has changed
Fixes #1545
This commit is contained in:
@@ -33,8 +33,10 @@ namespace hex::prv::undo {
|
||||
|
||||
template<std::derived_from<Operation> T>
|
||||
bool add(auto && ... args) {
|
||||
auto result = this->add(std::make_unique<T>(std::forward<decltype(args)>(args)...));
|
||||
EventDataChanged::post(m_provider);
|
||||
return this->add(std::make_unique<T>(std::forward<decltype(args)>(args)...));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
bool add(std::unique_ptr<Operation> &&operation);
|
||||
|
||||
Reference in New Issue
Block a user