From 379561117862952d567bfdbf0700b5c7f470a1a8 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Sun, 20 Feb 2022 12:59:46 +0100 Subject: - Added Preferences - Added idle notify to preferences - Bug fix: if user deleted first task none would show --- src/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/database.rs') diff --git a/src/database.rs b/src/database.rs index 70e6043..7612643 100644 --- a/src/database.rs +++ b/src/database.rs @@ -149,7 +149,7 @@ pub fn check_for_tasks() -> Result { let conn = Connection::open(get_directory())?; conn.query_row( - "SELECT task_name FROM tasks WHERE id='1'", + "SELECT task_name FROM tasks ORDER BY ROWID ASC LIMIT 1", [], |row| row.get(0), ) -- cgit 1.4.1