fix: Provider load interface not opening

This commit is contained in:
WerWolv
2023-11-27 15:34:05 +01:00
parent af77b8dfc4
commit 494223fff6
5 changed files with 15 additions and 8 deletions

View File

@@ -37,10 +37,13 @@ namespace hex::plugin::windows {
[[nodiscard]] std::string getName() const override { return hex::format("hex.windows.provider.process_memory.name"_lang, this->m_selectedProcess != nullptr ? this->m_selectedProcess->name : ""); }
[[nodiscard]] std::vector<Description> getDataDescription() const override {
return {
if (this->m_selectedProcess == nullptr)
return {};
else
return {
{ "hex.windows.provider.process_memory.process_name"_lang, this->m_selectedProcess->name },
{ "hex.windows.provider.process_memory.process_id"_lang, std::to_string(this->m_selectedProcess->id) }
};
};
}
[[nodiscard]] bool open() override;