From a5f2e19c1295b85ff73478fc3aae33cf6642ab4f Mon Sep 17 00:00:00 2001 From: TheFGFSEagle Date: Fri, 3 Feb 2023 22:57:18 +0100 Subject: [PATCH] Pass node in the config hash instead of as an argument --- Nasal/canvas/gui/dialogs/WidgetsFactoryDialog.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/canvas/gui/dialogs/WidgetsFactoryDialog.nas b/Nasal/canvas/gui/dialogs/WidgetsFactoryDialog.nas index d1d6d8229..63f09bbeb 100644 --- a/Nasal/canvas/gui/dialogs/WidgetsFactoryDialog.nas +++ b/Nasal/canvas/gui/dialogs/WidgetsFactoryDialog.nas @@ -57,7 +57,7 @@ var WidgetsFactoryDialog = { m.checkbox_right = gui.widgets.CheckBox.new(m.tabsContent, style, {"label-position": "left"}) .setText("Checkbox with text on the left side"); m.tab_1.addItem(m.checkbox_right); - m.property_checkbox = gui.widgets.PropertyCheckBox.new(props.globals.getNode("/controls/lighting/nav-lights"), m.tabsContent, style, {}) + m.property_checkbox = gui.widgets.PropertyCheckBox.new(m.tabsContent, style, {"node": props.globals.getNode("/controls/lighting/nav-lights")}) .setText("Nav lights"); m.tab_1.addItem(m.property_checkbox);