diff --git a/gui/scripts/windowman.JS b/gui/scripts/windowman.JS index 9e72e8e..031a521 100644 --- a/gui/scripts/windowman.JS +++ b/gui/scripts/windowman.JS @@ -429,17 +429,9 @@ export default class windowman { input_elements.forEach((input_element) => { if (input_element.getAttribute("data-enable")) { (async () => { - input_element.disabled = !((await secretariat.read( - input_element.getAttribute("data-enable"), - )) != null - ? (typeof (await secretariat.read( - input_element.getAttribute("data-enable"), - ))).includes(`obj`) - ? ( - await secretariat.read( - input_element.getAttribute("data-enable"), - ) - ).length > 0 + input_element.disabled = !((await secretariat.read(input_element.getAttribute("data-enable"))) != null + ? (typeof (await secretariat.read(input_element.getAttribute("data-enable")))).includes(`obj`) + ? (Object.keys(await secretariat.read(input_element.getAttribute("data-enable")))).length > 0 : !!(await secretariat.read( input_element.getAttribute("data-enable"), ))