Jump to content

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


Recommended Posts

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("','") + "'];");
}

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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