Skip to content

Commit a4b1630

Browse files
authored
Merge pull request #1378 from myk002/myk_manip_details
[gui/manipulator] use the new setAutomaticProfessions endpoint
2 parents 7bd2457 + ca33684 commit a4b1630

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gui/manipulator.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ function Spreadsheet:init()
653653
data_fn=curry(toggle_sorted_vec_data, wd.assigned_units),
654654
toggle_fn=function(unit_id, prev_val)
655655
toggle_sorted_vec(wd.assigned_units, unit_id, prev_val)
656-
-- TODO: poke DF to actually apply the work details to units
656+
local unit = df.unit.find(unit_id)
657+
if unit then dfhack.units.setAutomaticProfessions(unit) end
657658
end,
658659
}
659660
}

0 commit comments

Comments
 (0)