phibr0 / obsidian-commander

Commander - Obsidian Plugin | Add Commands to every part of Obsidian's user interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide the title bar icons if their checkCallback returns false

farcaller opened this issue · 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