fix: Crash when opening release notes about page

This commit is contained in:
WerWolv
2025-08-21 19:45:07 +02:00
parent d207d98a82
commit 16c52f4008

View File

@@ -560,7 +560,7 @@ namespace hex::plugin::builtin {
std::string content;
content += fmt::format("# {} | {}\n", notes.versionString, notes.title);
content += fmt::format("--\n");
content += fmt::format("---\n");
content += body;
notes.markdown = std::make_shared<ui::Markdown>(content);
} catch (std::exception &e) {
@@ -591,7 +591,8 @@ namespace hex::plugin::builtin {
}
}
(*notes.markdown)->draw();
if (*notes.markdown != nullptr)
(*notes.markdown)->draw();
}
struct Commit {