replace /sim/devel by /sim/gui/devel-widgets to enable/disable devel widgets
This commit is contained in:
parent
33277e0730
commit
8bf50232da
2 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@
|
|||
<nasal>
|
||||
<open>
|
||||
var self = cmdarg();
|
||||
if (!getprop("/sim/devel")) {
|
||||
if (!getprop("/sim/gui/devel-widgets")) {
|
||||
foreach(var w; [1, 3, 4, 5]) {
|
||||
self.removeChild("group", w);
|
||||
}
|
||||
|
|
|
@ -288,7 +288,7 @@
|
|||
|
||||
<nasal>
|
||||
<open>
|
||||
if (!getprop("/sim/devel")) {
|
||||
if (!getprop("/sim/gui/devel-widgets")) {
|
||||
cmdarg().getNode("group[2]/group[1]").removeChild("checkbox", 2);
|
||||
}
|
||||
</open>
|
||||
|
|
Loading…
Add table
Reference in a new issue