phibr0/obsidian-commander

Hide the title bar icons if their checkCallback returns false

farcaller opened this issue · 0 comments

Describe the feature

A little quality-of-life improvement: it'd be great to hide the buttons in the title bar if they are checked and the check returns false. This way, the actions that cannot be invoked wouldn't even be a visual option (as opposed to a button that does nothing right now).

Does this fix a problem? If so, specify.

Currently if the action is checked and it cannot be invoked, clicking a button does nothing.

Did you consider other alternatives?

The menu actions work as expected, but that's one extra click and it's less visual.

Screenshots and recordings

No response