Hide empty sub-menus from Foundry's settings app

This commit is contained in:
Oliver 2025-12-26 00:43:53 -07:00
parent 00af9286d4
commit 9c19306cc1
4 changed files with 16 additions and 2 deletions

View file

@ -9,6 +9,7 @@ export class HotbarSettingsMenu extends OFTSettingsMenu {
};
static get _SETTINGS() {
if (!categories.has(`hotbar`)) { return [] };
const settings = categories.get(`hotbar`);
const settingIDs = [];
for (const [settingID, shown] of settings.entries()) {