summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-21 13:53:59 +0800
committerGitHub <[email protected]>2025-11-21 13:53:59 +0800
commit76a0bd604dd7dd39e6f9e49969bb1a14bc1ac3b2 (patch)
treeabb7894092479e9d6f934073b15f73b77cb01250 /xmake/plugins
parent0719de2b664bdfc82ce30534ed196bfc81fc072a (diff)
parente2b694841565457fc93a2295be46bada03e4d739 (diff)
Merge pull request #7043 from xmake-io/timer
improve progress refresh timer
Diffstat (limited to 'xmake/plugins')
-rw-r--r--xmake/plugins/format/main.lua11
-rw-r--r--xmake/plugins/repo/main.lua2
2 files changed, 3 insertions, 10 deletions
diff --git a/xmake/plugins/format/main.lua b/xmake/plugins/format/main.lua
index 7a4c53394..f527b6c00 100644
--- a/xmake/plugins/format/main.lua
+++ b/xmake/plugins/format/main.lua
@@ -219,16 +219,9 @@ function main()
local runjobs_opt = {
total = #sourcefiles,
comax = jobs,
- showtips = false
+ showtips = false,
+ progress_refresh = true
}
- -- Only set timer for multirow progress mode
- if progress.is_multirow() then
- runjobs_opt.timeout = 1000
- runjobs_opt.on_timer = function (running_indices)
- -- Periodically refresh multirow progress to update elapsed time
- progress.refresh()
- end
- end
runjobs("clang-format", function (index, total, opt)
local sourcefile = sourcefiles[index]
local format_argv = table.join(argv, {sourcefile})
diff --git a/xmake/plugins/repo/main.lua b/xmake/plugins/repo/main.lua
index 40dad5c20..f11e350c5 100644
--- a/xmake/plugins/repo/main.lua
+++ b/xmake/plugins/repo/main.lua
@@ -150,7 +150,7 @@ function _update()
if option.get("verbose") then
task()
else
- runjobs("update repo", task, {progress = true, isolate = true})
+ runjobs("update repo", task, {waiting_indicator = true, isolate = true})
end
-- leave environment