summaryrefslogtreecommitdiff
path: root/todo-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-12-02 09:18:16 -0500
committerstreetturtle <streetturtle@gmail.com>2020-12-02 09:18:16 -0500
commit8be78d4fddfc2c88352b25f5d8d89c6dc14df37c (patch)
tree68f14b1e9d1e6265bc95e1fa39f06e439bc79572 /todo-widget
parentbc7008458e90edbf4a48a3356433c8b96b850335 (diff)
fix few issues
Diffstat (limited to 'todo-widget')
-rw-r--r--todo-widget/todo.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/todo-widget/todo.lua b/todo-widget/todo.lua
index 71484b2..71bf832 100644
--- a/todo-widget/todo.lua
+++ b/todo-widget/todo.lua
@@ -200,7 +200,7 @@ local function worker(args)
widget = wibox.container.background
}
- trash_button:connect_signal("button::press", function(c)
+ trash_button:connect_signal("button::press", function()
table.remove(result.todo_items, i)
spawn.easy_async_with_shell("printf '" .. json.encode(result) .. "' > " .. STORAGE, function ()
spawn.easy_async(GET_TODO_ITEMS, function(stdout) update_widget(stdout) end)
@@ -214,7 +214,7 @@ local function worker(args)
widget = wibox.widget.imagebox
}
- move_up:connect_signal("button::press", function(c)
+ move_up:connect_signal("button::press", function()
local temp = result.todo_items[i]
result.todo_items[i] = result.todo_items[i-1]
result.todo_items[i-1] = temp