diff options
| -rw-r--r-- | ttt.jai | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1413,8 +1413,11 @@ main :: () { update_times(*database); //timeout(INPUT_AWAIT_INF); TODO DAM - // TODO WIP Remove `selected_task` and `active_task` and helper functions. - // TODO Every time we add or remove tasks to the database, it may be reallocated, thus making the selected_task and active_task pointers invalid. Check if this is messing up the app. + /* TODO + Remove `selected_task` and `active_task` and helper functions. + Every time we add or remove tasks to the database, it may be reallocated, thus making the selected_task and active_task pointers invalid. Check if this is messing up the app. + Maybe use a macro returns the selected/active task based on the indices. + */ selected_task := get_selected_task(db); active_task := get_active_task(db); selected_task_row: int; |
