diff options
author | 0neGal <mail@0negal.com> | 2022-09-14 19:10:44 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-09-14 19:10:44 +0200 |
commit | d8760e60cecb51758cc32056b082c5f83886ea45 (patch) | |
tree | a6b709d604d77bad9d4911ac405f73105f5aebf7 /src/index.js | |
parent | 0c719656d99c69e11794b61a04e2fa31bbe5bb22 (diff) | |
download | Viper-d8760e60cecb51758cc32056b082c5f83886ea45.tar.gz Viper-d8760e60cecb51758cc32056b082c5f83886ea45.zip |
differentiation between update() and updatevp()
Some functions have been renamed:
update() -> updateNorthstar()
updatevp() -> updateViper()
Overall these are far better function names...
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.js b/src/index.js index e01a635..30e36f5 100644 --- a/src/index.js +++ b/src/index.js @@ -105,7 +105,7 @@ function start() { if (cli.hasParam("no-vp-updates")) { utils.handleNorthstarUpdating(); } else { - utils.updatevp(false) + utils.updateViper(false) } } else { utils.handleNorthstarUpdating(); @@ -146,7 +146,7 @@ ipcMain.on("launch-vanilla", () => {utils.launch("vanilla")}); ipcMain.on("setlang", (event, lang) => {utils.setlang(lang)}); -ipcMain.on("update", () => {utils.update()}) +ipcMain.on("update-northstar", () => {utils.updateNorthstar()}) ipcMain.on("setpath-cli", () => {utils.setpath()}); ipcMain.on("setpath", (event, value) => { if (! value) { @@ -224,8 +224,8 @@ process.chdir(app.getPath("appData")); // starts the GUI or CLI if (cli.hasArgs()) { - if (cli.hasParam("updatevp")) { - utils.updatevp(true); + if (cli.hasParam("update-viper")) { + utils.updateViper(true); } else { cli.init(); } |