From 976d3e69a0b4e7c93d5caee45c64788d12aca7b7 Mon Sep 17 00:00:00 2001 From: Christian Doczkal <20443222+chdoc@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:19:42 +0200 Subject: [PATCH] hide panel when assigning someone to the workshop --- idle-crafting.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/idle-crafting.lua b/idle-crafting.lua index 4f74ae724..b618a0a67 100644 --- a/idle-crafting.lua +++ b/idle-crafting.lua @@ -4,6 +4,7 @@ local overlay = require('plugins.overlay') local widgets = require('gui.widgets') local repeatutil = require("repeat-util") +local orders = require('plugins.orders') ---create a new linked job ---@return df.job @@ -361,6 +362,7 @@ IdleCraftingOverlay.ATTRS { 'dwarfmode/ViewSheets/BUILDING/Workshop/Craftsdwarfs/Workers', }, frame = { w = 54, h = 1 }, + visible = orders.can_set_labors } function IdleCraftingOverlay:init()