fix(checker): update updated after every manage operation. Fixes #141

This commit is contained in:
Folke Lemaitre 2022-12-24 09:22:46 +01:00
parent 9110371120
commit 86f2c67aa8
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 4 additions and 5 deletions

View File

@ -27,9 +27,7 @@ function M.fast_check(opts)
end
end
end
if opts.report ~= false then
M.report()
end
M.report(opts.report ~= false)
end
function M.check()
@ -42,7 +40,8 @@ function M.check()
end)
end
function M.report()
---@param notify? boolean
function M.report(notify)
local lines = {}
M.updated = {}
for _, plugin in pairs(Config.plugins) do
@ -54,7 +53,7 @@ function M.report()
end
end
end
if #lines > 0 and Config.options.checker.notify then
if #lines > 0 and notify and Config.options.checker.notify then
table.insert(lines, 1, "# Plugin Updates")
Util.info(lines)
end