@@ -71,7 +71,7 @@ OrdersOverlay.ATTRS{
7171 default_pos = {x = 53 ,y =- 6 },
7272 default_enabled = true ,
7373 viewscreens = ' dwarfmode/Info/WORK_ORDERS/Default' ,
74- frame = {w = 46 , h = 4 },
74+ frame = {w = 43 , h = 4 },
7575}
7676
7777function OrdersOverlay :init ()
@@ -99,7 +99,7 @@ function OrdersOverlay:init()
9999 },
100100 widgets .HotkeyLabel {
101101 frame = {t = 0 , l = 15 },
102- label = ' recheck' ,
102+ label = ' recheck conditions ' ,
103103 key = ' CUSTOM_CTRL_K' ,
104104 auto_width = true ,
105105 on_activate = do_recheck ,
@@ -112,7 +112,7 @@ function OrdersOverlay:init()
112112 on_activate = do_sort ,
113113 },
114114 widgets .HotkeyLabel {
115- frame = {t = 0 , l = 31 },
115+ frame = {t = 1 , l = 28 },
116116 label = ' clear' ,
117117 key = ' CUSTOM_CTRL_C' ,
118118 auto_width = true ,
@@ -179,10 +179,10 @@ local function set_current_inactive()
179179 end
180180end
181181
182- local function is_current_active ()
182+ local function can_recheck ()
183183 local scrConditions = df .global .game .main_interface .info .work_orders .conditions
184184 local order = scrConditions .wq
185- return order .status .active
185+ return order .status .active and # order . item_conditions > 0
186186end
187187
188188-- -------------------
@@ -197,7 +197,7 @@ RecheckOverlay.ATTRS{
197197 default_enabled = true ,
198198 viewscreens = focusString ,
199199 -- width is the sum of lengths of `[` + `Ctrl+A` + `: ` + button.label + `]`
200- frame = {w = 1 + 6 + 2 + 16 + 1 , h = 3 },
200+ frame = {w = 1 + 6 + 2 + 19 + 1 , h = 3 },
201201}
202202
203203local function areTabsInTwoRows ()
@@ -226,10 +226,10 @@ function RecheckOverlay:init()
226226 widgets .TextButton {
227227 view_id = ' button' ,
228228 -- frame={t=0, l=0, r=0, h=1}, -- is set in `updateTextButtonFrame()`
229- label = ' request re-check' ,
229+ label = ' re-check conditions ' ,
230230 key = ' CUSTOM_CTRL_A' ,
231231 on_activate = set_current_inactive ,
232- enabled = is_current_active ,
232+ enabled = can_recheck ,
233233 },
234234 }
235235
0 commit comments