1
0
mirror of https://github.com/fadden/6502bench.git synced 2026-04-20 19:16:34 +00:00
Files
6502bench/SourceGen
Andy McFadden 1b2353c259 Auto-save, part 2
Periodically save the project to the recovery file if changes have
been made and the project is "dirty".

We need to handle a couple of things specially.  If the user uses
"Save As" to change the project name, we need to recreate the recovery
file as well.  If auto-save is enabled or disabled in app settings, we
need to create or discard the recovery file, and possibly change the
timer interval.  If the project is modified, auto-saved, and then the
change is un-done, the project won't be dirty, but will have a stale
recovery file with a newer modification date; we handle this by simply
truncating the stale recovery file.

To reduce the amount of auto-saving, we don't do an initial write to
the recovery file, and we reset the timer every time the user does a
manual save.  A user who saves diligently will always have an empty
recovery file.
2024-08-07 17:55:54 -07:00
..
2024-07-04 10:32:24 -07:00
2021-11-14 09:21:15 -08:00
2024-08-02 13:47:39 -07:00
2024-08-01 15:08:43 -07:00
2024-07-07 18:12:29 -07:00
2024-05-31 14:22:39 -07:00
2024-07-07 18:12:29 -07:00
2024-08-07 17:55:54 -07:00
2021-09-30 21:11:26 -07:00
2019-07-20 17:36:12 -07:00
2024-07-04 17:25:21 -07:00
2024-07-20 13:06:08 -07:00
2024-08-02 13:47:39 -07:00
2019-11-08 21:02:15 -08:00
2024-05-31 14:22:39 -07:00
2022-03-02 08:13:46 -08:00
2024-05-31 14:22:39 -07:00
2021-11-17 11:18:23 -08:00
2024-05-31 14:22:39 -07:00
2024-07-04 17:25:21 -07:00
2024-08-07 17:55:54 -07:00
2021-09-30 21:11:26 -07:00
2024-07-20 13:05:50 -07:00
2021-10-07 12:39:30 -07:00
2024-08-07 17:55:54 -07:00
2024-06-24 16:36:27 -07:00
2024-07-04 17:25:21 -07:00
2024-07-04 17:25:21 -07:00
2024-04-30 13:27:07 -07:00
2024-05-31 14:22:39 -07:00
2021-11-02 08:54:07 -07:00
2024-05-22 14:02:53 -07:00