From 42c1426ff7b3335abbb21daa6ad391d8f3d7ec9c Mon Sep 17 00:00:00 2001 From: guillermo Date: Tue, 31 Jan 2023 14:06:29 +0100 Subject: [PATCH] refs #4975 Uploaded version number --- src/main.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.js b/src/main.js index d698154..a92d2cc 100755 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,6 @@ var Conf = { appName: 'Verdnatura', - odbcPath: 'HKCU\\Software\\ODBC\\ODBC.INI\\', + odbcPath: 'HKCU\\SOFTWARE\\ODBC\\ODBC.INI\\', regPath: 'HKCU\\SOFTWARE\\Verdnatura\\vn-access', defaultModule: 'vn', defaultLocale: 'es', @@ -12,7 +12,7 @@ var Conf = { maxCorruptSize: 600, odbcDriver: 'MySQL ODBC 8.0 Unicode Driver', driverPath: '\\MySQL\\Connector ODBC 8.0\\myodbc8w.dll', - version: 4, + version: 5, cdnURL: 'https://cdn.verdnatura.es/vn-access', identifier: '.vn' }; @@ -86,7 +86,7 @@ var App = { var path = 'HKCU\\Software\\Microsoft\\Office\\11.0\\Access\\'; // Creates the Access configuration entries - this.regWrites(path + 'Settings', { + this.regWrites(path +'Settings', { 'Confirm Document Deletions': false, 'Confirm Action Queries': false, 'Confirm Record Changes': false @@ -99,11 +99,11 @@ var App = { this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL); this.regWrite(Conf.regPath, 'lastExecutedVersion', Conf.version); - // Delete old strings values (REMOVE IN VERSION 5) - this.regDelete(Conf.regPath + 'configured'); - this.regDelete(Conf.regPath + 'remember'); - this.regDelete(Conf.odbcPath + 'verdnatura'); - this.regDelete(Conf.odbcPath + 'ODBC Data Sources\\verdnatura'); + // Delete old strings values (REMOVE IN VERSION 6) + this.regDelete(Conf.regPath +'\\configured'); + this.regDelete(Conf.regPath + '\\remember'); + this.regDelete(Conf.odbcPath +'verdnatura\\'); + this.regDelete(Conf.odbcPath +'ODBC Data Sources\\verdnatura'); } var notSignOut = this.regRead(Conf.regPath, 'notSignOut'); @@ -144,7 +144,7 @@ var App = { selectDatarouce.options.add(option[y]) } } - // In case old general odbc (REMOVE IN VERSION 5) + // In case old general odbc (REMOVE IN VERSION 6) if (this.dsName == 'verdnatura') { this.dsName = Conf.defaultDatasource; this.$('datasource').value = this.dsName + Conf.identifier;