a global symbol must not only *contain* __dlg:property_browser, but
start with it. ("__dlg:" is the namespace prefix for Nasal embedded in XML dialogs. Subsequent property browsers get a random number added.)
This commit is contained in:
parent
499e47bede
commit
1f57ea72b4
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ Dialog = {
|
||||||
property_browser = func(dir = "/") {
|
property_browser = func(dir = "/") {
|
||||||
var dlgname = "property-browser";
|
var dlgname = "property-browser";
|
||||||
foreach (var module; keys(globals)) {
|
foreach (var module; keys(globals)) {
|
||||||
if (find("__dlg:" ~ dlgname, module) >= 0) {
|
if (find("__dlg:" ~ dlgname, module) == 0) {
|
||||||
return globals[module].clone(dir);
|
return globals[module].clone(dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue