Jump to content

[BUG+FIX] Saving the Config file temporarily breaks the Commands grid


Recommended Posts

Posted

Cause

A bug in SaveConfig tampers with the variable used to populate the Commands grid for the current application entry, causing any further selection on the grid to populate the wrong command in the command editbox, until a different application is selected.

Fix

Replace the following line in the HideWriteRegKey2 function of configwizard.js

			if (configList[i].cmds.length>0)
{
Commands.splice(0,Commands.length);
Commands=configList[i].cmds.split("','");
for (var j=0; j<Commands.length; j++)
{
Commands[j]=Commands[j].replace(/\\/g,"\\\\").replace(/'/g,"\\'"); // For apostrophes
Commands[j]=Commands[j].replace(/,/gi,"%comma%");
}
tf.WriteLine("cmds[pn]=['" + Commands.join("','") + "'];");
}

with

			if (configList[i].cmds.length>0)
{
CurCommands=configList[i].cmds.split("','");
for (var j=0; j<CurCommands.length; j++)
{
CurCommands[j]=CurCommands[j].replace(/\\/g,"\\\\").replace(/'/g,"\\'"); // For apostrophes
CurCommands[j]=CurCommands[j].replace(/,/gi,"%comma%");
}
tf.WriteLine("cmds[pn]=['" + CurCommands.join("','") + "'];");
}


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...