There are posts about this for the better part of a decade:
- Automatically save for recovery purposes unsaved documents
- OK to Create by Restart Manager
- Autosave broken in 8.0.2
- Block reboots
Ok rant over. I decided to put my anger into something useful and do some QA and A/B testing compared to Windows Notepad:
Setup:
- Win 10 (latest update),
- TextPad 9.3.1 (latest update) default settings,
- Sign-in options -> Automatically save my restartable apps... Turned ON
Scenarios:
1) Sign out occurs while editing a new unsaved file. When the user signs back in:
============================================================================
Expected behavior: The application should restart upon login and all the previous content should remain
TextPad: Application restarts with a blank new file, all content is lost
Notepad: Application restarts, all content remains
Comment: There was nothing in the user's AppData/Local/Helios/Textpad directory
2) Sign out occurs while editing an existing file. When the user signs back in:
=========================================================================
Expected behavior: The application should restart upon login and all previous content should remain, but the existing file should not have been saved.
TextPad: Application restarts with a blank new file. The previous edits were saved to the existing file.
Notepad: Application restarts, all content remains, the existing file is unmodified.
Comments: Although saving the edits to the existing file is better than nothing, that behavior is still incorrect. The whole point is to restore the previous state (e.g. the edits should be saved to a temp file and reopened upon sign in), maybe the user never planned to save the changes. [/list]
Other weird bugs I managed to replicate:
The dreaded OK to Create by Restart Manager:
==================================================
- Open a file in TextPad using the right click context menu
- Sign out then sign back in.
Comment: In order to replicate this you have to open a file using the right click context menu
"Save All" does nothing for newly created files
========================================
Save all only seems to save existing files. That's fine, if you rename it to "Save All Existing". Otherwise, it is extremely confusing. For example consider if you are writing a few new files. You haven't saved them yet. You click "Save All" and nothing happens, it's a no-op. You are confused, did you do something wrong? Should it be grayed out? It gets even more confusing if you have some new files and some existing files edited.
Expected behavior: Save All should save all existing files AND prompt you save all new files. Or it should otherwise give you a prompt that you still have new files.
"Reload last workspace at startup"
=============================
This only seems to work if you have explicitly saved the last workspace? Was that the design goal? If you did not save the last workspace, TextPad will not open it. What is the expected functionality of this feature? Is it like "restore the previous session on startup" (that's what I thought originally)?
Hope this is helpful. If any of the Admins or Developers want to ping me, we can do a screen share and I can demonstrate.