aboutsummaryrefslogtreecommitdiff
path: root/src/app/settings.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-04-18 20:14:48 +0200
committer0neGal <mail@0negal.com>2022-04-18 20:14:48 +0200
commit15fa312110fc94dcfbef58d1b0bd5f58a4e5f431 (patch)
tree5c79179d97d21d9d834286089a5b90f50d94e09d /src/app/settings.js
parent9ae7cc35744b3aa032dc20efeb1b4df463ceb7ab (diff)
downloadViper-15fa312110fc94dcfbef58d1b0bd5f58a4e5f431.tar.gz
Viper-15fa312110fc94dcfbef58d1b0bd5f58a4e5f431.zip
first draft of Linux launch support
This only has GUI elements, and slight changes to the utils.launch() function, but none that would result in anything working yet.
Diffstat (limited to 'src/app/settings.js')
-rw-r--r--src/app/settings.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/settings.js b/src/app/settings.js
index 23b38c9..96d9379 100644
--- a/src/app/settings.js
+++ b/src/app/settings.js
@@ -126,6 +126,13 @@ var Settings = {
}
}
+ if (process.platform == "win32") {
+ let linuxopts = document.querySelectorAll(".options .linuxopt");
+ for (let i = 0; i < linuxopts.length; i++) {
+ linuxopts[i].style.display = "none";
+ }
+ }
+
ipcRenderer.send("can-autoupdate");
ipcRenderer.on("cant-autoupdate", () => {
document.querySelector(".option[name=autoupdate]").style.display = "none";