fix: Data inspector not updating correctly when data has changed

Fixes #1545
This commit is contained in:
WerWolv
2024-02-15 13:01:34 +01:00
parent e016c8a702
commit 2f88994c37
3 changed files with 10 additions and 2 deletions

View File

@@ -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);