Skip to content

Commit

Permalink
Show hotbar on macro compendium display
Browse files Browse the repository at this point in the history
  • Loading branch information
saif-ellafi committed Dec 21, 2021
1 parent b7aa889 commit 27f29a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.2.1
* Enhancement: Small quality of life improvement, displays the hotbar (if hidden) when opening macro compendiums

### 1.2.0
* Support: Foundry VTT V9 Support (Not backwards Compatible)
* Enhancement: Left Controls new partial-auto-hide setting
Expand Down
5 changes: 5 additions & 0 deletions modules/component/hotbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ export default class MinimalUIHotbar {
Hooks.on('collapseSidebar', function() {
MinimalUIHotbar.positionHotbar();
});

Hooks.on('renderCompendium', function(compendium) {
if (compendium.metadata.type === 'Macro')
MinimalUIHotbar.lockHotbar(false)
})
}

}

0 comments on commit 27f29a9

Please sign in to comment.