Skip to content

Commit

Permalink
Handle hidden macro groups correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrodrig committed Jan 2, 2025
1 parent 01d0b26 commit 3d90e31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/sohl-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11672,6 +11672,7 @@ export class SohlMacroConfig extends MacroConfig {
data.editable = this.isEditable;
data.const = SOHL.sysVer.CONST;
data.config = SOHL.sysVer.CONFIG;
data.flags = data.document.flags;
data.contextGroupChoices = SohlContextMenu.sortGroups;
return data;
}
Expand Down Expand Up @@ -12662,7 +12663,7 @@ function SohlSheetMixin(Base) {
? doc.system._getContextOptions()
: doc._getContextOptions();

result = result.filter((co) => co.contextGroup !== "hidden");
result = result.filter((co) => co.group !== "hidden");

// Sort the menu items according to group. Expect items with no group
// at the top, items in the "primary" group next, and items in the
Expand Down

0 comments on commit 3d90e31

Please sign in to comment.