fix: Crash when not making a valid selection in provider load interfaces

This commit is contained in:
WerWolv
2023-03-16 16:48:15 +01:00
parent 0312027ca8
commit 7cdba75bef
10 changed files with 20 additions and 11 deletions

View File

@@ -37,7 +37,7 @@ namespace hex::plugin::builtin {
[[nodiscard]] std::vector<std::pair<std::string, std::string>> getDataDescription() const override;
[[nodiscard]] bool hasLoadInterface() const override { return true; }
void drawLoadInterface() override;
bool drawLoadInterface() override;
void loadSettings(const nlohmann::json &settings) override;
[[nodiscard]] nlohmann::json storeSettings(nlohmann::json settings = { }) const override;

View File

@@ -41,7 +41,7 @@ namespace hex::plugin::builtin {
[[nodiscard]] bool isConnected() const;
[[nodiscard]] bool hasLoadInterface() const override { return true; }
void drawLoadInterface() override;
bool drawLoadInterface() override;
void loadSettings(const nlohmann::json &settings) override;
[[nodiscard]] nlohmann::json storeSettings(nlohmann::json settings) const override;