You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's good to check with the user that it is okay to close or exit something before that app is allowed to close itself, but sometimes you may want it to automatically close itself when you're away, for example, when using software that exports something.
A good solution for these scenarios is to add a countdown that closes the window automatically when it ends and can be stopped by clicking a cancel button before it ends. Think the alert message that appears when you change your display settings, which has a timer to make sure that if you change something that makes you unable to see the screen, the changes will automatically revert after a short time.
Here's an example:
Close.tab.confirmation.mp4
This would also involve replacing the alert() call, which can't time out, with a custom modal (which TurboWarp already has, it just doesn't yet have a specific modal for confirming to close a window and that times out).
The text was updated successfully, but these errors were encountered:
Interesting idea. The original behavior was it closes regardless, but before merge Garbo was the one with the non packaged warning pop up. But how would it work with the current setup, because alert() effectively paused the code till dismissed.
It's good to check with the user that it is okay to close or exit something before that app is allowed to close itself, but sometimes you may want it to automatically close itself when you're away, for example, when using software that exports something.
A good solution for these scenarios is to add a countdown that closes the window automatically when it ends and can be stopped by clicking a cancel button before it ends. Think the alert message that appears when you change your display settings, which has a timer to make sure that if you change something that makes you unable to see the screen, the changes will automatically revert after a short time.
Here's an example:
Close.tab.confirmation.mp4
This would also involve replacing the
alert()
call, which can't time out, with a custom modal (which TurboWarp already has, it just doesn't yet have a specific modal for confirming to close a window and that times out).The text was updated successfully, but these errors were encountered: