diff --git a/CHANGELOG.md b/CHANGELOG.md index 30312e4..31335bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### 0.5.7 +* Compatibility: Works around a bug in Foundry that prevents opening windows when sidebar is collapsed + ### 0.5.6 * Enhancement: It is now possible to collapse right panel by default * Compatibility: Minor fixes with DND-UI diff --git a/minimalui.js b/minimalui.js index 8e7e669..737e04b 100644 --- a/minimalui.js +++ b/minimalui.js @@ -504,6 +504,13 @@ Hooks.once('ready', async function() { } } + // Temporarily work around a bug in Foundry VTT 0.7.9 + $("#sidebar-tabs > a:nth-child(n)").click(function(eve) { + if (ui.sidebar._collapsed) { + ui.sidebar.activateTab(jQuery(eve.currentTarget).attr('data-tab')) + } + }) + }); Hooks.on('renderCameraViews', async function() { diff --git a/module.json b/module.json index e2cc137..1631095 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "title": "Minimal UI", "author": "JeansenVaars#2857", "description": "Minimal UI reduces size of Foundry interface and allows hiding or collapsing specific parts.", - "version": "0.5.6", + "version": "0.5.7", "minimumCoreVersion": "0.7.9", "compatibleCoreVersion": "0.7.9", "esmodules": [ "lib/colorsettings/colorSetting.js" ],