Get-Info-Plugin
Get-Info-Plugin copied to clipboard
Multiple modals created when using the command
Hi! Great plugin! I just wanted to flag what looks like a bug. If you click the ? in the status bar, the modal flickers (seems to be closing and re-opening). Not a big deal, but if you instead run the plugin's Obsidian command, it will add a new modal on top of the existing one if one is already open. This is most pronounced when using a keyboard shortcut to pull it up. Each time I hit the shortcut key, it layers a new modal rather than reloading or dismissing. There's a very subtle visual cue that the modals are stacking. If I click outside the stack of modals, they all disappear at once. But if I use the Escape
key to dismiss them, I have to do it once for each instance.
Expected Behavior
Running the command twice should not open a new modal if one is already open. Ideally, whichever way the user chooses to run the plugin, it should toggle the modal state either open or closed based on current status.
Omg, thank you very much for this! I thought I made sure to mitigate this potential bug but apparently something slipped through the cracks (or the more likely reason: I just got lazy). Anyway, I'll fix this right now!