From 20e2ee4f2064bf190a18c3ef5167625e9553b601 Mon Sep 17 00:00:00 2001 From: guillermo Date: Fri, 23 Feb 2024 13:24:05 +0100 Subject: [PATCH] refactor refs #5308 Requested changes --- src/main.js | 11 +++++++---- src/vn-access.hta | 1 - 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main.js b/src/main.js index 57f1690..55b6026 100755 --- a/src/main.js +++ b/src/main.js @@ -85,6 +85,9 @@ var App = { this.dsName = mdbDsName || userDefaultDatasource || Conf.defaultDatasource; this.heartClicks = 0; + // Change title + document.title = document.title + ' - ' + this.module; + // Creates the necessary registry entries var lastVersion = this.regRead(Conf.regPath, 'lastExecutedVersion'); @@ -286,12 +289,12 @@ var App = { style.display = 'none'; }, refreshDeveloperMode: function() { - var stylesName = ['branchOptions', 'datasourceOptions'] + var stylesName = ['branchOptions', 'datasourceOptions']; for (var n in stylesName) { var style = this.$(stylesName[n]).style; - this.regRead(Conf.regPath, 'hasDeveloperMode') - ? style.visibility = 'visible' - : style.visibility = 'hidden' + style.visibility = this.regRead(Conf.regPath, 'hasDeveloperMode') + ? 'visible' + : 'hidden'; } }, onChangeBranch: function() { diff --git a/src/vn-access.hta b/src/vn-access.hta index d8cce66..4813f8c 100755 --- a/src/vn-access.hta +++ b/src/vn-access.hta @@ -22,7 +22,6 @@ windowsstate="normal"/>