diff options
| author | dam <dam@gudinoff> | 2024-05-09 23:44:51 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-05-09 23:44:51 +0100 |
| commit | 3fd7b092ec6e2fa56603d35768f98b2ceeb9bfcc (patch) | |
| tree | 01117a29650ebf1c32f2229f40e2adca9c05aca6 /ttt.jai | |
| parent | 18cd73bb1830fd49089eb82667ba6ae14606938c (diff) | |
| download | task-time-tracker-3fd7b092ec6e2fa56603d35768f98b2ceeb9bfcc.tar.zst task-time-tracker-3fd7b092ec6e2fa56603d35768f98b2ceeb9bfcc.zip | |
Added possible solution for active/selected task pointers potential issue.
Diffstat (limited to 'ttt.jai')
| -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; |
