Author Topic: [PJSR] Settings.readGlobal() and Settings.writeGlobal() Not Working  (Read 3202 times)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Both global access methods of the Global object are broken in version 1.6.1. This is a confirmed regression since version 1.6.0.

Example test code:

console.writeln( Settings.readGlobal( "Security/AllowJavaScriptCommandExecution", DataType_Boolean ) ? "yes" : "no" );

The above sentence always writes "no", as the readGlobal method of Settings always returns an invalid value that evaluates to Boolean false. For a workaround, see this forum post:

http://pixinsight.com/forum/index.php?topic=1791.msg13813#msg13813

Thanks to Georg Viehoever for discovering this bug. It will be fixed in the next release.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/