swiftDialog / swiftDialog

Create user-notifications on macOS with swiftDialog
MIT License
546 stars 53 forks source link

Hide/unhide option #408

Open Melvin-P-NL opened 1 month ago

Melvin-P-NL commented 1 month ago

Is your feature request related to a problem? Please describe. No, it isn’t.

Describe the solution you'd like I would appreciate a function to hide/unhide swiftDialog at launch and by using the command file.

This is because I use swiftDialog for an enrollment workflow, which I need to interrupt and resume in some situations. It works fine to re-launch swiftDialog, but would be easier to just hide until we’re ready to proceed.

Also, I think this is a more beautiful way to handle the background launch as described at https://github.com/swiftDialog/swiftDialog/wiki/Updating-Dialog-with-new-content. Because, then you could initiate swiftDialog with very basic parameters hidden, and then control it with the command file and unhide it, without seeing a glitch.

As a bonus, it would be great if you can set the button to hide instead of exit swiftDialog, to implement this in a workflow.

Describe alternatives you've considered Re-launching swiftDialog from the same script.