From 4b0f25ca86c6c5d14d414a7ac8ccf2fa52460f1b Mon Sep 17 00:00:00 2001 From: dam Date: Wed, 2 Nov 2022 01:03:16 +0000 Subject: Implemented autosave feature. Fixed argument/options processing to allow repeating options, and using options to set behavior configurations. --- readme.md | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 770fe3e..7525e00 100644 --- a/readme.md +++ b/readme.md @@ -54,16 +54,8 @@ Task Time Tracker - [x] Total times may saturate, but before that the user will see the infinite symbol. Solution: Provide user with possibility to refresh totals. - [x] Decide on a INVALID_WINDOW_MESSAGE. - [x] Use backspace to clear all timers for current task. -- [ ] Save more often using the `store_database_partial` and only save all when quitting: - - When operating on the archive, will we keep the saves synchronous? - - Maybe add a cooldown timer and save changes after it times out? - - Maybe add a partial-save when (de)activating a task (just save the task and the database core? - - on (de)activate_task : partial w/task - - on rename, changetimes : partial w/task - - on new_task : partial w/task - - on refresh : partial - - on exit : full - - on move, delete, archive: full +- [x] Move `store_database_partial` to misc and save only when leaving or after 15 seconds of inactivity and having dirty flag set. +- [x] Register kill signals to exit gracefully. - [ ] Check if string_buffer needs to be cleared. We may be leaking info on the string_buffer. - [ ] Maybe replace all `sprintf` by `snprintf`; - [ ] REVISE ALL CODE ptrdiff_t/size_t (signed/unsigned)! -- cgit v1.2.3