Skip to content

Commit

Permalink
Merge pull request #1378 from myk002/myk_manip_details
Browse files Browse the repository at this point in the history
[gui/manipulator] use the new setAutomaticProfessions endpoint
  • Loading branch information
myk002 authored Jan 25, 2025
2 parents 7bd2457 + ca33684 commit a4b1630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/manipulator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,8 @@ function Spreadsheet:init()
data_fn=curry(toggle_sorted_vec_data, wd.assigned_units),
toggle_fn=function(unit_id, prev_val)
toggle_sorted_vec(wd.assigned_units, unit_id, prev_val)
-- TODO: poke DF to actually apply the work details to units
local unit = df.unit.find(unit_id)
if unit then dfhack.units.setAutomaticProfessions(unit) end
end,
}
}
Expand Down

0 comments on commit a4b1630

Please sign in to comment.