diff --git a/docs/plugins/orders.rst b/docs/plugins/orders.rst index 4affa01b3..351456e2e 100644 --- a/docs/plugins/orders.rst +++ b/docs/plugins/orders.rst @@ -17,7 +17,7 @@ Usage manager orders. It will not clear the orders that already exist. ``orders clear`` Deletes all manager orders in the current embark. -``orders reset`` +``orders recheck`` Invalidates manager orders forcing material conditions recheck. ``orders sort`` Sorts current manager orders by repeat frequency so repeating orders don't diff --git a/plugins/lua/orders.lua b/plugins/lua/orders.lua index a4f3c459f..b50c28694 100644 --- a/plugins/lua/orders.lua +++ b/plugins/lua/orders.lua @@ -62,8 +62,8 @@ local function do_export() }:show() end -local function do_reset() - dfhack.run_command('orders', 'reset') +local function do_recheck() + dfhack.run_command('orders', 'recheck') end local function do_sort_type() @@ -107,10 +107,10 @@ function OrdersOverlay:init() }, widgets.HotkeyLabel{ frame={t=0, l=15}, - label='reset', + label='recheck', key='CUSTOM_CTRL_R', auto_width=true, - on_activate=do_reset, + on_activate=do_recheck, }, widgets.HotkeyLabel{ frame={t=1, l=15}, diff --git a/plugins/orders.cpp b/plugins/orders.cpp index 12eb08640..4b93cff2d 100644 --- a/plugins/orders.cpp +++ b/plugins/orders.cpp @@ -66,7 +66,7 @@ static command_result orders_clear_command(color_ostream & out); static command_result orders_sort_command(color_ostream & out); static command_result orders_sort_type_command(color_ostream & out); static command_result orders_sort_material_command(color_ostream & out); -static command_result orders_reset_command(color_ostream & out); +static command_result orders_recheck_command(color_ostream & out); static command_result orders_command(color_ostream & out, std::vector & parameters) { @@ -124,9 +124,9 @@ static command_result orders_command(color_ostream & out, std::vectormanager_orders) {