Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use the new repeat-util API for querying #1350

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/control-panel/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function get_enabled_map()
end
end
-- repeat entries override tool names for control-panel
for munged_name in pairs(repeatUtil.repeating) do
for _,munged_name in ipairs(repeatUtil.listScheduled()) do
local name = unmunge_repeat_name(munged_name)
if name then
enabled_map[name] = true
Expand Down Expand Up @@ -118,7 +118,7 @@ local function persist_repeats()
local cp_repeats = {}
for _, data in ipairs(registry.COMMANDS_BY_IDX) do
if data.mode == 'repeat' then
if repeatUtil.repeating[munge_repeat_name(data.command)] then
if repeatUtil.isScheduled(munge_repeat_name(data.command)) then
cp_repeats[data.command] = true
else
cp_repeats[data.command] = false
Expand Down
4 changes: 2 additions & 2 deletions repeat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ elseif args.command then
end

if args.list then
for k in pairs(repeatUtil.repeating) do
print(k)
for _,name in ipairs(repeatUtil.listScheduled()) do
print(name)
end
return
end
Loading