From 02b0481980c34e6d03df834543af5043cf3135e0 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Tue, 16 Jun 2020 22:19:20 -0400 Subject: update readme for github widget --- github-activity-widget/github-activity-widget.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'github-activity-widget/github-activity-widget.lua') diff --git a/github-activity-widget/github-activity-widget.lua b/github-activity-widget/github-activity-widget.lua index 769134c..019803e 100644 --- a/github-activity-widget/github-activity-widget.lua +++ b/github-activity-widget/github-activity-widget.lua @@ -139,13 +139,12 @@ local function worker(args) github_widget:set_icon(icon) - local rows = { { widget = wibox.widget.textbox }, layout = wibox.layout.fixed.vertical, } - local update_widget = function(widget, stdout, stderr, _, _) + local rebuild_widget = function(widget, stdout, stderr, _, _) if stderr ~= '' then show_warning(stderr) return @@ -260,7 +259,7 @@ local function worker(args) popup.visible = not popup.visible else spawn.easy_async(string.format(GET_EVENTS_CMD, CACHE_DIR, number_of_events), function (stdout, stderr) - update_widget(github_widget, stdout, stderr) + rebuild_widget(github_widget, stdout, stderr) popup:move_next_to(mouse.current_widget_geometry) end) end @@ -268,6 +267,7 @@ local function worker(args) ) ) + -- Calls GitHub event API and stores response in "cache" file gears.timer { timeout = 600, call_now = true, -- cgit v1.2.3