gingerbeardman / stapler

My take on the classic Macintosh app Stapler (with a little bit of LaunchList)
https://blog.gingerbeardman.com/2024/08/10/stapler-i-remade-a-32-year-old-classic-macintosh-app/
MIT License
215 stars 7 forks source link

Shutting down Stapler gives no "save warning" dialog #5

Closed runxel closed 1 month ago

runxel commented 1 month ago

When you (accidentally) close Stapler there should be a warning dialog so you can save the stapler doc and not lose your work.

gingerbeardman commented 1 month ago

Thanks for the report.

This is absolutely an oversight on my part. 😳

You might wonder how I could miss this? Well, I have my Mac set to remember and restore the windows of any app that are open when it is closed. This basically gives you permanence for free. I've had my system set this way for so long I forgot that it's not the default. 🤦‍♂️

I'll add prompt to save in the next version.


And I just added this tip to the blog post:

System Preferences > Desktop & Dock > Windows > Close windows when quitting an application = OFF

Then leave the windows of an app open as you quit it. When you next launch the app its windows will restore to their previous size and position. If you close the windows first, then the app will restore to having no windows open.

gingerbeardman commented 1 month ago

Currently my workaround is to just save the files when you quit. Not ideal.

Will try a better approach before I launch 1.1.0

gingerbeardman commented 1 month ago

Solved in 1.1 https://github.com/gingerbeardman/stapler/releases/latest

If you're still having related issues, feel free to comment here.