From a236722a752ebd665ae75ee26ff89fd1ef1a504e Mon Sep 17 00:00:00 2001 From: Mikhail Panov Date: Fri, 22 Sep 2023 18:37:14 +0300 Subject: [PATCH] Changed hotkeys + orders.cpp compilation error fix. --- plugins/lua/orders.lua | 4 ++-- plugins/orders.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/lua/orders.lua b/plugins/lua/orders.lua index 1dd7e8160..c84dfa5f7 100644 --- a/plugins/lua/orders.lua +++ b/plugins/lua/orders.lua @@ -129,14 +129,14 @@ function OrdersOverlay:init() widgets.HotkeyLabel{ frame={t=1, l=30}, label='sort by type', - key='CUSTOM_CTRL_T', + key='CUSTOM_CTRL_J', auto_width=true, on_activate=do_sort_type, }, widgets.HotkeyLabel{ frame={t=0, l=52}, label='sort by mat', - key='CUSTOM_CTRL_M', + key='CUSTOM_CTRL_T', auto_width=true, on_activate=do_sort_mat, }, diff --git a/plugins/orders.cpp b/plugins/orders.cpp index bfbe03480..77e8d5fa8 100644 --- a/plugins/orders.cpp +++ b/plugins/orders.cpp @@ -1198,7 +1198,7 @@ static command_result orders_recheck_current_command(color_ostream & out) { if (game->main_interface.info.work_orders.conditions.open) { - game->main_interface.info.work_orders.conditions.wq.status.active = false; + game->main_interface.info.work_orders.conditions.wq->status.bits.active = false; } else {