script-kit / app

Other
66 stars 15 forks source link

Widget keeps menu/command bar open #223

Open Xanacas opened 3 hours ago

Xanacas commented 3 hours ago

I just switched from v2 to v3 and noticed, that a script that creates a widget keeps the command bar open and if I close the command bar, the widget goes away as well. This can be reproduced with the time widget from the docs.

In case it matters: I am on Windows 11 with the latest v3 from this repo

johnlindquist commented 2 hours ago

@Xanacas you should be able to call:

await hide()

Right before the widget is created to hide the main prompt.

I'll fix/restore the behavior so that a widget will automatically hide it