Prompt user to save when closing app

后端 未结 5 975
耶瑟儿~
耶瑟儿~ 2021-01-13 09:12

I\'m writing what boils down to a document editor. When the application is closing, I need to prompt the user to save changes. This is easy enough. My question is when is it

5条回答
  •  生来不讨喜
    2021-01-13 09:53

    I'd definitly also show the "Do you want to save" dialog on WindowsShutDown (the application might e.g. have been in the background for some time and the user forgot about it, or he might have clicked on "Restart" after a service pack was installed without thinking twice etc.).

    As for TaskManagerClosing, I'd not show the dialog in this case.

提交回复
热议问题