This repository was archived by the owner on Nov 20, 2022. It is now read-only.
File tree 3 files changed +13
-11
lines changed
3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 38
38
</ div >
39
39
< div >
40
40
< label for ="inputCacheSize "> Cache Size: (in gigabytes)</ label >
41
- < input
42
- type ="number "
43
- id ="inputCacheSize "
44
- v-model ="config.cache_size "
45
- min ="20 "
46
- />
41
+ < input type ="number " id ="inputCacheSize " v-model ="config.cache_size " min ="20 "/>
47
42
< label for ="inputDirectory "> Cache Expiry Time: (in days)</ label >
48
- < input
49
- type ="number "
50
- v-model ="config.cache_expiry_delay "
51
- min ="30 "
52
- />
43
+ < input type ="number " v-model ="config.cache_expiry_delay " min ="30 "/>
44
+ </ div >
45
+ < div >
46
+ < label for ="inputDisableRichPresence "> Rich Presence: (Discord and Steam Rich Presence)</ label >
47
+ < input type ="checkbox " id ="inputDisableRichPresence " v-model ="config.disableRichPresence ">
48
+ < label for ="inputDisableRichPresence " class ="labelInline "> Disable Rich Presence</ label >
53
49
</ div >
54
50
< div class ="float-right ">
55
51
< button class ="button button-outline " @click ="reset " :disabled ="disabled "> Reset</ button >
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ new Vue({
7
7
vrchat_dir : '' ,
8
8
old_config : { } ,
9
9
config : {
10
+ disableRichPresence : false ,
10
11
cache_directory : '' ,
11
12
cache_size : 20 ,
12
13
cache_expiry_delay : 30 ,
@@ -34,6 +35,7 @@ new Vue({
34
35
load_config ( ) {
35
36
readTextFile ( this . config_file ) . then ( data => {
36
37
let config = JSON . parse ( data )
38
+ if ( config . disableRichPresence === undefined ) config . disableRichPresence = false
37
39
if ( config . cache_directory === undefined ) config . cache_directory = ""
38
40
if ( config . cache_size === undefined ) config . cache_size = 20
39
41
if ( config . cache_expiry_delay === undefined ) config . cache_expiry_delay = 30
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ body {
14
14
border-top-right-radius : 0 !important ;
15
15
}
16
16
17
+ .labelInline {
18
+ display : inline;
19
+ }
20
+
17
21
.links {
18
22
position : fixed;
19
23
bottom : 5px ;
You can’t perform that action at this time.
0 commit comments