fix: Disable recent files on web build since they can't work there

This commit is contained in:
WerWolv
2025-01-01 17:08:31 +01:00
parent 9f9c5abf35
commit 0e4d94946e
2 changed files with 8 additions and 1 deletions

View File

@@ -347,6 +347,10 @@ namespace hex::plugin::builtin::recent {
}
void addMenuItems() {
#if defined(OS_WEB)
return;
#endif
ContentRegistry::Interface::addMenuItemSubMenu({ "hex.builtin.menu.file" }, 1200, [] {
if (ImGui::BeginMenuEx("hex.builtin.menu.file.open_recent"_lang, ICON_VS_ARCHIVE, !recent::s_recentEntriesUpdating && !s_recentEntries.empty())) {
// Copy to avoid changing list while iteration