diff --git a/html/src/app.js b/html/src/app.js index 41978a7e..411c5863 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -11217,6 +11217,9 @@ speechSynthesis.getVoices(); $app.data.hideCpuUsageFromFeed = configRepository.getBool( 'VRCX_hideCpuUsageFromFeed' ); + $app.data.hideUptimeFromFeed = configRepository.getBool( + 'VRCX_hideUptimeFromFeed' + ); $app.data.overlayNotifications = configRepository.getBool( 'VRCX_overlayNotifications' ); @@ -11305,6 +11308,10 @@ speechSynthesis.getVoices(); 'VRCX_hideCpuUsageFromFeed', this.hideCpuUsageFromFeed ); + configRepository.setBool( + 'VRCX_hideUptimeFromFeed', + this.hideUptimeFromFeed + ); configRepository.setBool( 'VRCX_overlayNotifications', this.overlayNotifications @@ -11842,6 +11849,10 @@ speechSynthesis.getVoices(); } } } + var onlineFor = ''; + if (!this.hideUptimeFromFeed) { + onlineFor = API.currentUser.$online_for; + } var lastLocation = { date: this.lastLocation.date, location: this.lastLocation.location, @@ -11849,7 +11860,7 @@ speechSynthesis.getVoices(); playerList: Array.from(this.lastLocation.playerList.values()), friendList: Array.from(this.lastLocation.friendList.values()), progressPie, - onlineFor: API.currentUser.$online_for + onlineFor }; var json = JSON.stringify(lastLocation); AppApi.ExecuteVrFeedFunction('lastLocationUpdate', json); diff --git a/html/src/index.pug b/html/src/index.pug index 4974657b..b0724073 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -1072,6 +1072,9 @@ html div.options-container-item span.name Hide CPU Usage el-switch(v-model="hideCpuUsageFromFeed" @change="saveOpenVROption" :disabled="!openVR || !overlayWrist") + div.options-container-item + span.name Hide Uptime + el-switch(v-model="hideUptimeFromFeed" @change="saveOpenVROption" :disabled="!openVR || !overlayWrist") div.options-container-item el-button(size="small" icon="el-icon-notebook-2" @click="showWristFeedFiltersDialog" :disabled="!openVR || !overlayWrist") Wrist Feed Filters br