1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: View provider not saving top-level data to project file

This commit is contained in:
WerWolv 2024-03-10 15:32:01 +01:00
parent d4d1acb555
commit c2aafb14c2

View File

@ -102,6 +102,8 @@ namespace hex::plugin::builtin {
} }
void loadSettings(const nlohmann::json &settings) override { void loadSettings(const nlohmann::json &settings) override {
Provider::loadSettings(settings);
auto id = settings.at("id").get<u64>(); auto id = settings.at("id").get<u64>();
m_startAddress = settings.at("start_address").get<u64>(); m_startAddress = settings.at("start_address").get<u64>();
m_size = settings.at("size").get<size_t>(); m_size = settings.at("size").get<size_t>();
@ -121,7 +123,8 @@ namespace hex::plugin::builtin {
settings["id"] = m_provider->getID(); settings["id"] = m_provider->getID();
settings["start_address"] = m_startAddress; settings["start_address"] = m_startAddress;
settings["size"] = m_size; settings["size"] = m_size;
return settings;
return Provider::storeSettings(settings);
} }
[[nodiscard]] std::string getTypeName() const override { [[nodiscard]] std::string getTypeName() const override {