aboutsummaryrefslogtreecommitdiff
path: root/src/modules/update.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-03-05 00:52:49 +0100
committer0neGal <mail@0negal.com>2023-03-05 00:52:49 +0100
commita5dd677c6e5e6c2cb3eec7a2edc08d15dfe43c7a (patch)
treee058daee9677f5820d3130f08a34cb9ccfd8442e /src/modules/update.js
parent5d86a3daa5f762326055469b6bcd8346e0655056 (diff)
downloadViper-a5dd677c6e5e6c2cb3eec7a2edc08d15dfe43c7a.tar.gz
Viper-a5dd677c6e5e6c2cb3eec7a2edc08d15dfe43c7a.zip
show alert when updating with game running
This also fixes is_running not quite working on Linux
Diffstat (limited to 'src/modules/update.js')
-rw-r--r--src/modules/update.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/update.js b/src/modules/update.js
index cfdb42b..2c75cac 100644
--- a/src/modules/update.js
+++ b/src/modules/update.js
@@ -63,7 +63,7 @@ update.northstar_autoupdate = () => {
if (await northstar_update_available()) {
console.log(lang("cli.autoupdates.available"));
if (await is_running.game()) {
- console.log(lang("cli.autoupdates.gamerunning"));
+ console.log(lang("general.autoupdates.gamerunning"));
new Notification({
title: lang("gui.nsupdate.gaming.title"),
body: lang("gui.nsupdate.gaming.body")
@@ -150,7 +150,7 @@ update.viper = (autoinstall) => {
// unzip module does not support excluding files directly.
update.northstar = async () => {
if (await is_running.game()) {
- console.log(lang("cli.autoupdates.gamerunning"));
+ console.log(lang("general.autoupdates.gamerunning"));
return false;
}