aboutsummaryrefslogtreecommitdiff
path: root/ttt.jai
diff options
context:
space:
mode:
authordam <dam@gudinoff>2024-08-28 13:29:57 +0100
committerdam <dam@gudinoff>2024-08-28 14:51:07 +0100
commit2ec6ef66d9fdc4f225c5f0e6317bb7ecba040533 (patch)
treefec5dd8c33a6225435add99e016ae15996f19de1 /ttt.jai
parent10045da39d6eb6aa767b360fbea43d5361383c15 (diff)
downloadtask-time-tracker-2ec6ef66d9fdc4f225c5f0e6317bb7ecba040533.tar.zst
task-time-tracker-2ec6ef66d9fdc4f225c5f0e6317bb7ecba040533.zip
Update TUI module to fix memory leak; Only sort if tasks are available.v3.2
Diffstat (limited to 'ttt.jai')
-rw-r--r--ttt.jai4
1 files changed, 3 insertions, 1 deletions
diff --git a/ttt.jai b/ttt.jai
index cc6ec0d..7446567 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -14,7 +14,7 @@ DEBUG :: false;
#import "UTF8";
TUI :: #import "TUI"(COLOR_MODE_BITS=4);
-VERSION :: "3.1"; // Use only 3 chars (to fit layouts).
+VERSION :: "3.2"; // Use only 3 chars (to fit layouts).
YEAR :: "2024";
NUM_WEEK_DAYS :: 7;
@@ -1746,6 +1746,8 @@ main :: () {
// Sort by.
case #char "s"; #through;
case #char "S";
+ if selected_task == null continue;
+
TUI.using_style(action_style);
sort_by := prompt_user_key(selected_task_row, "Sort by (n) name, (1..7) day, or (t) total time.");
show_processing();