diff options
| author | ruki <[email protected]> | 2026-03-10 00:53:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-10 00:53:43 +0800 |
| commit | 85d6d2e1647374020ea63791bbe15b55d700b094 (patch) | |
| tree | d5015a52003f2edc99d012c055aac655cecfa52b /xmake/modules/utils/progress.lua | |
| parent | dbd3e1a81718585105ed342ecc128df149590f70 (diff) | |
improve set target
Diffstat (limited to 'xmake/modules/utils/progress.lua')
| -rw-r--r-- | xmake/modules/utils/progress.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/progress.lua b/xmake/modules/utils/progress.lua index 40cab5ec3..3e7598ac2 100644 --- a/xmake/modules/utils/progress.lua +++ b/xmake/modules/utils/progress.lua @@ -378,7 +378,7 @@ end -- set the associated target name for the progress object (coroutine-local) -- it's safe to call with non-table progress (e.g. number), it will be ignored function set_target(progress, target) - if type(progress) == "table" and progress.set then + if _is_show_target_enabled() and type(progress) == "table" and progress.set then progress:set("target_name", target:fullname()) end end |
