fix: Disable recent files on web build since they can't work there
This commit is contained in:
parent
9f9c5abf35
commit
0e4d94946e
@ -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
|
||||
|
@ -254,7 +254,10 @@ namespace hex::plugin::builtin {
|
||||
|
||||
// Draw recent entries
|
||||
ImGui::Dummy({});
|
||||
recent::draw();
|
||||
|
||||
#if !defined(OS_WEB)
|
||||
recent::draw();
|
||||
#endif
|
||||
|
||||
ImGui::TableNextRow(ImGuiTableRowFlags_None, ImGui::GetTextLineHeightWithSpacing() * 6);
|
||||
ImGui::TableNextColumn();
|
||||
|
Loading…
x
Reference in New Issue
Block a user