4 ms·
A further option is to do what Notepad++ does: save current state even through closing and reopening the application until the user closes the file. When you re
by dspillett 4y ago
A further option is to do what Notepad++ does: save current state even through closing and reopening the application until the user closes the file. When you restart the app files that were never saved and never close are as they were, modified files too. The possible issues with modified files is that if you think you've saved and don't get prompted then run some other tool that relies on the new information it won't be there (as the saved state is elsewhere, not the main file).
Keep the “do you want to save first?” prompts for when closing the file.
Of course for some file types this could use a lot of storage, so it won't be as applicable everywhere.
- bombcar 4y agoBut this type of idea would be disastrous when applied to private browsing windows, for example.
- Jtsummers 4y agoNothing about what's being discussed has been presented as an absolute. So in situations like that, just give a warning, if anything, since saving might be counter to the intent of the mode. In other words, exercise good judgment based on the circumstances.
- bombcar 4y agoEven there a warning can be annoying - as often a private window needs to close very quickly.
- Jtsummers 4y ago>> So in situations like that, just give a warning, if anything [quoting myself, adding emphasis] Again, it's about judgement for the circumstances. We're in agreement here, but your original comment read as if you were taking the discussion here as being about absolutes.
- dspillett 4y agoCorrect. Nothing like this should be enabled in a private mode, and no user should expect it to be¹ enabled in a private mode. Losing unsaved data is a logical consequence of being in a private mode, it is up to the user to be careful here. This won't harm unsuspecting users if you need to explicitly request privacy, by for instance opening an incognito window, if you request privacy it is valid to assume you know the potential consequences. ---- [1] Though you shouldn't rely on it not being, never assume there are no idiots around not thinking straight when implementing private functions and things that might interact with them! Trust but verify. Or just verify.
- smegsicle 4y agoor you can do what libreoffice does and display an obnoxious dialog when the program starts, demanding to know what to do with the documents you were messing with last time
- iudqnolq 4y agoTo really rub it in in proper libreoffice fashion it also needs to pop up an opaque warning message telling you that the restore failed and this is your only chance to try to restore the restore of the restore.