diff --git a/index.html b/index.html
index 7dd6dbd..aead163 100644
--- a/index.html
+++ b/index.html
@@ -24,8 +24,15 @@
-
-
Nothing is there yet.
+
General Settings
+
+
+
@@ -113,6 +120,7 @@
Nothing is there yet.
document.getElementById('statePatternRoute').value = settings.statePatternRoute
document.getElementById('detailsPatternRoute').value = settings.detailsPatternRoute
document.getElementById('rpcautooff').checked = settings.autoOffRPC
+ document.getElementById('showRepoButton').checked = settings.showRepoButton
})
api.recieve('save-settings-reply',(arg)=>{
if(arg == "ok"){
@@ -127,7 +135,8 @@ Nothing is there yet.
detailsPattern: document.getElementById('detailsPattern').value,
statePatternRoute: document.getElementById('statePatternRoute').value,
detailsPatternRoute: document.getElementById('detailsPatternRoute').value,
- autoOffRPC: document.getElementById('rpcautooff').checked
+ autoOffRPC: document.getElementById('rpcautooff').checked,
+ showRepoButton: document.getElementById('showRepoButton').checked
})
}
diff --git a/index.js b/index.js
index 2fc6400..16f4b89 100644
--- a/index.js
+++ b/index.js
@@ -131,7 +131,7 @@ app.whenReady().then(() => {
smallImageKey: "paint",
smallImageText: info.paintjobtext,
buttons : [
- {label : "🐱💻Github Repo" , url : "https://github.com/justkowal/FGCompanion"},
+ (settings.properties.showRepoButton) ? {label : "🐱💻Github Repo" , url : "https://github.com/justkowal/FGCompanion"} : undefined ,
],
instance: true,
})
@@ -146,7 +146,7 @@ app.whenReady().then(() => {
smallImageKey: "paint",
smallImageText: info.paintjobtext,
buttons : [
- {label : "🐱💻Github Repo" , url : "https://github.com/justkowal/FGCompanion"},
+ (settings.properties.showRepoButton) ? {label : "🐱💻Github Repo" , url : "https://github.com/justkowal/FGCompanion"} : undefined ,
],
instance: true,
})
diff --git a/package-lock.json b/package-lock.json
index 2684c7b..b04fb55 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,7 +1,7 @@
{
"name": "FGCompanion",
"version": "1.0.0",
- "lockfileVersion": 2,
+ "lockfileVersion": 1,
"requires": true,
"packages": {
"": {
@@ -1165,7 +1165,7 @@
"resolved": "https://registry.npmjs.org/discord-rich-presence/-/discord-rich-presence-0.0.8.tgz",
"integrity": "sha512-IpVMPjv15C9UvppxvrrGdv6bzQHOW1P1vLoMH15HvdJwGJ3dBd2bnrJ63Uy36YRUfrAMxGLiwUDHncvC8AuPaQ==",
"requires": {
- "discord-rpc": "github:discordjs/rpc"
+ "discord-rpc": "discord-rpc@github:discordjs/rpc"
}
},
"discord-rpc": {
@@ -1173,7 +1173,7 @@
"from": "discord-rpc@github:discordjs/rpc",
"requires": {
"node-fetch": "^2.6.1",
- "register-scheme": "github:devsnek/node-register-scheme",
+ "register-scheme": "register-scheme@github:devsnek/node-register-scheme",
"ws": "^7.3.1"
}
},
@@ -1717,8 +1717,7 @@
"ws": {
"version": "7.5.5",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.5.tgz",
- "integrity": "sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w==",
- "requires": {}
+ "integrity": "sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w=="
},
"yallist": {
"version": "4.0.0",
diff --git a/settings.json b/settings.json
index 690870f..3ce321f 100644
--- a/settings.json
+++ b/settings.json
@@ -1 +1 @@
-{"statePattern":"SPD: {airspeed} kt | ALT: {alt} ft","detailsPattern":"Flying over {airspace} {emoji}","statePatternRoute":"SPD: {airspeed} kt | ALT: {alt} ft","detailsPatternRoute":"Flying from {depicao} to {desticao}","autoOffRPC":true}
\ No newline at end of file
+{"statePattern":"SPD: {airspeed} kt | ALT: {alt} ft","detailsPattern":"Flying over {airspace} {emoji}","statePatternRoute":"SPD: {airspeed} kt | ALT: {alt} ft","detailsPatternRoute":"Flying from {depicao} to {desticao}","autoOffRPC":true,"showRepoButton":false}
\ No newline at end of file